Forget now has --prune which might be more efficent.
This commit is contained in:
@@ -71,6 +71,7 @@ wait $!
|
||||
restic forget \
|
||||
--verbose \
|
||||
--tag $BACKUP_TAG \
|
||||
--prune
|
||||
--group-by "paths,tags" \
|
||||
--keep-daily $RETENTION_DAYS \
|
||||
--keep-weekly $RETENTION_WEEKS \
|
||||
@@ -78,13 +79,6 @@ restic forget \
|
||||
--keep-yearly $RETENTION_YEARS &
|
||||
wait $!
|
||||
|
||||
# Remove old data not linked anymore.
|
||||
# See restic-prune(1) or http://restic.readthedocs.io/en/latest/060_forget.html
|
||||
restic prune \
|
||||
--option b2.connections=$B2_CONNECTIONS \
|
||||
--verbose &
|
||||
wait $!
|
||||
|
||||
# Check repository for errors.
|
||||
# NOTE this takes much time (and data transfer from remote repo?), do this in a separate systemd.timer which is run less often.
|
||||
#restic check &
|
||||
|
||||
Reference in New Issue
Block a user