diff --git a/templates/backup.sh.j2 b/templates/backup.sh.j2 index b1e3aeea9b72395b510a13ba5871323ee1eee63e..42b0ff88cf8eb4293dd91b77aecb3a3fa1912997 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 1d2bca75efbc27fde393e6dd98f24253a9c4dba4..bc23f12074946b81f7ef1397df87f1d29a6d3b0a 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 }}