From 2bb8c3b000ec20694e4aaf8723f124967411d87d Mon Sep 17 00:00:00 2001 From: VC Date: Fri, 5 Jul 2024 11:53:34 +0200 Subject: [PATCH] feat: add yearly backup retention --- roles/restic/templates/resticbackup.sh.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/restic/templates/resticbackup.sh.j2 b/roles/restic/templates/resticbackup.sh.j2 index 83785c1..e7f6150 100644 --- a/roles/restic/templates/resticbackup.sh.j2 +++ b/roles/restic/templates/resticbackup.sh.j2 @@ -10,4 +10,4 @@ export AWS_SECRET_ACCESS_KEY="{{ restic_aws_secret_access_key }}" {{ restic_path }} backup --exclude-caches {% for i in restic_backup_excluded_path %} -e {{ i }} {% endfor %} {% for i in restic_backup_path %}{{ i }} {% endfor %} ## récupération de l'espace -{{ restic_path }} forget --prune -d 7 -w 4 -m 3 +{{ restic_path }} forget --prune -d 7 -w 4 -m 3 -y 1