Add forget and prune commands
This commit is contained in:
parent
5f6dc6e177
commit
91725d5876
1 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue