From: rominique Date: Tue, 18 Jun 2024 12:48:32 +0000 (+0200) Subject: backup de la bdd dans le home du nuage pour des questions de sécu X-Git-Url: https://git.cyclocoop.org/%7B%7B%20url_for%28?a=commitdiff_plain;h=a20c3b3dc57328b956394ecf9db1f7d767886b9f;p=lhc%2Fansible.git backup de la bdd dans le home du nuage pour des questions de sécu --- 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 }}"