Change forget resolution to 30d

Restic is really annoying with its retention arguments, not really allowing what I want, so this is the easiest way to get decent retention.
This commit is contained in:
Jake Howard 2021-09-07 22:04:23 +01:00
parent 0a8167c839
commit d70f450e2d
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -10,7 +10,7 @@ export RESTIC_REPOSITORY="b2:{{ restic_b2_bucket }}"
export RESTIC_LOG_DIR="$HOME/log" export RESTIC_LOG_DIR="$HOME/log"
export RESTIC_LOG_FILE="$RESTIC_LOG_DIR/$1-$(date -Iseconds).log" export RESTIC_LOG_FILE="$RESTIC_LOG_DIR/$1-$(date -Iseconds).log"
export FORGET_OPTIONS="--keep-daily 7 --keep-weekly 2" export FORGET_OPTIONS="--keep-daily 30"
mkdir -p "$RESTIC_LOG_DIR" mkdir -p "$RESTIC_LOG_DIR"
@ -42,7 +42,7 @@ cron_forget() {
# Forget legacy snapshots # Forget legacy snapshots
forget() { forget() {
set -x set -x
restic forget --keep-daily 7 --keep-weekly 2 $@ restic forget $FORGET_OPTIONS $@
} }
# Prune orphaned files # Prune orphaned files