From a20c3b3dc57328b956394ecf9db1f7d767886b9f Mon Sep 17 00:00:00 2001 From: rominique Date: Tue, 18 Jun 2024 14:48:32 +0200 Subject: [PATCH] =?utf8?q?backup=20de=20la=20bdd=20dans=20le=20home=20du?= =?utf8?q?=20nuage=20pour=20des=20questions=20de=20s=C3=A9cu?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- tasks/backup_nextcloud.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/backup_nextcloud.yml b/tasks/backup_nextcloud.yml index dd20660..c126cb9 100644 --- a/tasks/backup_nextcloud.yml +++ b/tasks/backup_nextcloud.yml @@ -8,7 +8,7 @@ - name: Create a dump of the postgreSQL database # noqa : command-instead-of-module become: true become_user: "{{ nextcloud_php_user }}" - ansible.builtin.command: "pg_dump -f /tmp/{{ nextcloud_db_name }}.pgc -F c -O -b {{ nextcloud_db_name }}" + ansible.builtin.command: "pg_dump -f {{ nextcloud_webroot }}/{{ nextcloud_db_name }}.pgc -F c -O -b {{ nextcloud_db_name }}" args: chdir: "{{ nextcloud_webroot }}" -- 2.20.1