From 6e58a956aff16e194cefd3e4bf6c2dd18c78f60b Mon Sep 17 00:00:00 2001 From: camille Date: Tue, 2 May 2023 10:05:56 +0200 Subject: [PATCH] duplicity - add missing archive dir in cleanup jobs --- tasks/duplicity.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/duplicity.yml b/tasks/duplicity.yml index 65fe4aa..106dc74 100644 --- a/tasks/duplicity.yml +++ b/tasks/duplicity.yml @@ -240,7 +240,7 @@ month: "{{ duplicity_cron_backup_month }}" weekday: "{{ duplicity_cron_backup_weekday }}" user: "{{ duplicity_cron_backup_user }}" - job: ". /etc/duplicity/duplicity.cnf && duplicity --encrypt-key {{ duplicity_gpg_key }} --force --s3-use-new-style -v 4 remove-older-than {{ duplicity_remove_older_than }}D \"{{ duplicity_s3_path }}\"" + job: ". /etc/duplicity/duplicity.cnf && duplicity --encrypt-key {{ duplicity_gpg_key }} --force --s3-use-new-style -v 4 --archive-dir={{ duplicity_archive_dir }} remove-older-than {{ duplicity_remove_older_than }}D \"{{ duplicity_s3_path }}\"" when: - duplicity_gpg_key is defined - duplicity_backend == 's3' @@ -270,7 +270,7 @@ month: "{{ duplicity_cron_backup_month }}" weekday: "{{ duplicity_cron_backup_weekday }}" user: "{{ duplicity_cron_backup_user }}" - job: ". /etc/duplicity/duplicity.cnf && duplicity --encrypt-key {{ duplicity_gpg_key }} --force remove-older-than {{ duplicity_remove_older_than }}D \"{{ duplicity_azure_path }}\"" + job: ". /etc/duplicity/duplicity.cnf && duplicity --encrypt-key {{ duplicity_gpg_key }} --archive-dir={{ duplicity_archive_dir }} --force remove-older-than {{ duplicity_remove_older_than }}D \"{{ duplicity_azure_path }}\"" when: - duplicity_gpg_key is defined - duplicity_backend == 'azure'