From c1319a134a4975d1ba715e3fa333da2e467f40ce Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 20 Jan 2022 17:43:56 +0000 Subject: [PATCH] Forget snapshots in groups by host By default, it includes the path, which means path changes result in very old snapshots https://twitter.com/RealOrangeOne/status/1484217495124852748 --- ansible/roles/restic/files/backrest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/restic/files/backrest.sh b/ansible/roles/restic/files/backrest.sh index 82e853f..fbba2c1 100644 --- a/ansible/roles/restic/files/backrest.sh +++ b/ansible/roles/restic/files/backrest.sh @@ -11,7 +11,7 @@ export GOGC=20 # HACK: Work around for restic's high memory usage https://githu export RESTIC_LOG_DIR="$HOME/log" export RESTIC_LOG_FILE="$RESTIC_LOG_DIR/$1-$(date -Iseconds).log" -export FORGET_OPTIONS="--keep-daily 30" +export FORGET_OPTIONS="--keep-daily 30 --group-by host" mkdir -p "$RESTIC_LOG_DIR"