Forget now has --prune which might be more efficent.
This commit is contained in:
@@ -71,6 +71,7 @@ wait $!
|
|||||||
restic forget \
|
restic forget \
|
||||||
--verbose \
|
--verbose \
|
||||||
--tag $BACKUP_TAG \
|
--tag $BACKUP_TAG \
|
||||||
|
--prune
|
||||||
--group-by "paths,tags" \
|
--group-by "paths,tags" \
|
||||||
--keep-daily $RETENTION_DAYS \
|
--keep-daily $RETENTION_DAYS \
|
||||||
--keep-weekly $RETENTION_WEEKS \
|
--keep-weekly $RETENTION_WEEKS \
|
||||||
@@ -78,13 +79,6 @@ restic forget \
|
|||||||
--keep-yearly $RETENTION_YEARS &
|
--keep-yearly $RETENTION_YEARS &
|
||||||
wait $!
|
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.
|
# 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.
|
# 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 &
|
#restic check &
|
||||||
|
|||||||
Reference in New Issue
Block a user