Forget now has --prune which might be more efficent.

This commit is contained in:
Todd E Johnson
2019-07-25 22:51:07 -05:00
parent b7497a5516
commit 197b4b7064

View File

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