From d7056861b93869ca8f0bb3c6df1ee0ce0def7d7f Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 7 May 2022 11:34:46 +0100 Subject: [PATCH] Keep data for a bit longer Don't ask me why I did this... --- ansible/roles/restic/files/backrest.sh | 2 +- ansible/roles/zfs/defaults/main.yml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ansible/roles/restic/files/backrest.sh b/ansible/roles/restic/files/backrest.sh index fbba2c1..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 30 --group-by host" +export FORGET_OPTIONS="--keep-daily 30 --keep-monthly 3 --group-by host" mkdir -p "$RESTIC_LOG_DIR" diff --git a/ansible/roles/zfs/defaults/main.yml b/ansible/roles/zfs/defaults/main.yml index d0768ed..b3a2074 100644 --- a/ansible/roles/zfs/defaults/main.yml +++ b/ansible/roles/zfs/defaults/main.yml @@ -14,17 +14,17 @@ sanoid_datasets: sanoid_templates: production: frequently: 0 - hourly: 24 - daily: 14 - monthly: 2 + hourly: 36 + daily: 21 + monthly: 3 yearly: 0 autosnap: true autoprune: true replaceable: frequently: 0 - hourly: 6 - daily: 2 + hourly: 12 + daily: 5 monthly: 0 yearly: 0 autosnap: true