Add forget and prune commands

This commit is contained in:
Jake Howard 2021-05-16 14:39:44 +01:00
parent 5f6dc6e177
commit 91725d5876
Signed by: jake
GPG Key ID: 57AFB45680EDD477

View File

@ -27,6 +27,18 @@ backup() {
restic --verbose backup {{ restic_backup_locations|join(' ') }}
}
# Forget legacy snapshots
forget() {
set -x
restic forget --keep-daily 7 --keep-weekly 2 $@
}
# Prune orphaned files
prune() {
set -x
restic --verbose prune $@
}
# Run restic, but with environment variables set
exec () {
set -x