From 5099a7d2a23ee5d7ea1fba9a026bd97e8d15817f Mon Sep 17 00:00:00 2001 From: Stefan H Date: Tue, 26 Mar 2024 16:57:52 +0100 Subject: [PATCH] adjusted which and how long keeping snapshots --- roles/unhb_backup_scripts/templates/restic-prune.sh.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/unhb_backup_scripts/templates/restic-prune.sh.j2 b/roles/unhb_backup_scripts/templates/restic-prune.sh.j2 index bef5c0e..df17ac1 100755 --- a/roles/unhb_backup_scripts/templates/restic-prune.sh.j2 +++ b/roles/unhb_backup_scripts/templates/restic-prune.sh.j2 @@ -1,6 +1,6 @@ #!/bin/bash source /opt/scripts/restic/restic.env -restic forget --prune --keep-within 1m --host={{ ansible_hostname }} +restic forget --prune --keep-daily 7 --keep-weekly 4 --keep-monthly 6 --host={{ ansible_hostname }} echo "done! :)"