Update run-restic.sh - reduced the number of backups held to avoid filling our disks.

This commit is contained in:
Dave Lane 2022-02-16 02:20:58 +00:00
parent 6662783dc7
commit c23993bdbe

View file

@ -51,7 +51,7 @@ fi
# run the snapshot
ARGS="-r $DST --password-file $PW backup --tag $TAG --exclude-file=/restic.excludes --files-from /restic.files"
# clean up old snapshots
CLEAN="-r $DST --password-file $PW forget --prune --tag $TAG --keep-daily 7 --keep-weekly 5 --keep-monthly 12 --keep-yearly 7"
CLEAN="-r $DST --password-file $PW forget --prune --tag $TAG --keep-daily 4 --keep-weekly 3 --keep-monthly 6 --keep-yearly 3"
# create a snapshot
log "running snapshot"
$NICE $CMD $ARGS >> $LOG