From 53950bd4ab9dc640dbceb8c7a5c5a005e1708bce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20-=20Le=20Filament?= <remi@le-filament.com> Date: Tue, 3 Aug 2021 12:29:27 +0200 Subject: [PATCH] [IMP] add name for cache --- templates/backup.sh.j2 | 2 +- templates/backup2.sh.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/backup.sh.j2 b/templates/backup.sh.j2 index b1e3aee..42b0ff8 100644 --- a/templates/backup.sh.j2 +++ b/templates/backup.sh.j2 @@ -13,5 +13,5 @@ export SWIFT_REGIONNAME="{{ swift_odoo_regionname }}" export PASSPHRASE="{{ odoo_backup_pass }}" -duplicity --full-if-older-than 6D --volsize 200 --include /home/odoo/.local/share/Odoo/filestore/ --include /tmp/backup-$PGDATABASE.pgdump --exclude '**' / swift://odoo_{{ inventory_hostname|lower }} +duplicity --name backup --full-if-older-than 6D --volsize 200 --include /home/odoo/.local/share/Odoo/filestore/ --include /tmp/backup-$PGDATABASE.pgdump --exclude '**' / swift://odoo_{{ inventory_hostname|lower }} duplicity remove-all-but-n-full 5 --force swift://odoo_{{ inventory_hostname|lower }} diff --git a/templates/backup2.sh.j2 b/templates/backup2.sh.j2 index 1d2bca7..bc23f12 100644 --- a/templates/backup2.sh.j2 +++ b/templates/backup2.sh.j2 @@ -13,5 +13,5 @@ export SWIFT_REGIONNAME="{{ swift_odoo2_regionname }}" export PASSPHRASE="{{ odoo_backup_pass }}" -duplicity --full-if-older-than 6D --volsize 200 --include /home/odoo/.local/share/Odoo/filestore/ --include /tmp/backup-$PGDATABASE.pgdump --exclude '**' / swift://odoo_{{ inventory_hostname|lower }} +duplicity --name backup2 --full-if-older-than 6D --volsize 200 --include /home/odoo/.local/share/Odoo/filestore/ --include /tmp/backup-$PGDATABASE.pgdump --exclude '**' / swift://odoo_{{ inventory_hostname|lower }} duplicity remove-all-but-n-full 5 --force swift://odoo_{{ inventory_hostname|lower }} -- GitLab