truncate history
This commit is contained in:
11
restic/.bin/restic_prune
Executable file
11
restic/.bin/restic_prune
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
source $HOME/.bin/restic_common
|
||||
|
||||
info "Forgetting snapshots"
|
||||
restic -r $RESTIC_REPOSITORY unlock
|
||||
restic --cache-dir $CACHE_DIR -r $RESTIC_REPOSITORY forget --keep-hourly $KEEP_HOURS --keep-daily $KEEP_DAYS --keep-weekly $KEEP_WEEKS --keep-monthly $KEEP_WEEKS --keep-yearly $KEEP_YEARS
|
||||
|
||||
info "Pruning snapshots"
|
||||
restic -r $RESTIC_REPOSITORY unlock
|
||||
restic --cache-dir $CACHE_DIR -r $RESTIC_REPOSITORY prune
|
||||
Reference in New Issue
Block a user