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
This commit is contained in:
Jake Howard 2022-01-20 17:43:56 +00:00
parent 1db289b604
commit c1319a134a
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -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"