From f2290aafa6faa154831a51e87e10f3add3fb90bf Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Mon, 9 May 2022 22:55:22 +0100 Subject: [PATCH] Reduce usage and reliance on downsampled snapshots Keep more at a lower resolution, as really those are the most useful --- ansible/roles/restic/files/backrest.sh | 2 +- ansible/roles/zfs/defaults/main.yml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ansible/roles/restic/files/backrest.sh b/ansible/roles/restic/files/backrest.sh index 4036b86..b369500 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 --keep-monthly 3 --group-by host" +export FORGET_OPTIONS="--keep-daily 60 --keep-monthly 6 --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 b3a2074..ab5fff4 100644 --- a/ansible/roles/zfs/defaults/main.yml +++ b/ansible/roles/zfs/defaults/main.yml @@ -14,8 +14,8 @@ sanoid_datasets: sanoid_templates: production: frequently: 0 - hourly: 36 - daily: 21 + hourly: 48 + daily: 28 monthly: 3 yearly: 0 autosnap: true @@ -23,8 +23,8 @@ sanoid_templates: replaceable: frequently: 0 - hourly: 12 - daily: 5 + hourly: 24 + daily: 7 monthly: 0 yearly: 0 autosnap: true