backup de la bdd dans le home du nuage pour des questions de sécu
authorrominique <romain.legoff@heureux-cyclage.org>
Tue, 18 Jun 2024 12:48:32 +0000 (14:48 +0200)
committerrominique <romain.legoff@heureux-cyclage.org>
Tue, 18 Jun 2024 12:48:32 +0000 (14:48 +0200)
tasks/backup_nextcloud.yml

index dd20660..c126cb9 100644 (file)
@@ -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 }}"