Forget groups hosts together

This commit is contained in:
Erik Westrup
2018-08-02 00:19:36 +02:00
parent 47a129d2c6
commit 8d023d0fe1

View File

@@ -63,8 +63,10 @@ wait $!
# Dereference old backups.
# See restic-forget(1) or http://restic.readthedocs.io/en/latest/060_forget.html
# --group-by only the tag and path, and not by hostname. This is because I create a B2 Bucket per host, and if this hostname accidentially change some time, there would now be multiple backup sets.
restic forget \
--tag $BACKUP_TAG \
--group-by "paths,tags" \
--keep-daily $RETENTION_DAYS \
--keep-weekly $RETENTION_WEEKS \
--keep-monthly $RETENTION_MONTHS \