From 71732b7b7c352ffabbd02f9f6ba6c367ffc170a1 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Wed, 21 Sep 2022 08:48:05 +0100 Subject: [PATCH] Don't keep quite so many backups This results in a huge index which some smaller VMs can't handle --- 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 b369500..4036b86 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 60 --keep-monthly 6 --group-by host" +export FORGET_OPTIONS="--keep-daily 30 --keep-monthly 3 --group-by host" mkdir -p "$RESTIC_LOG_DIR"