move prune to backup

This commit is contained in:
2020-06-11 20:55:50 +02:00
parent 292a151e28
commit cf1f8ca0e9
2 changed files with 3 additions and 6 deletions

View File

@@ -4,3 +4,6 @@ source $HOME/.bin/borg_common
info "Starting backup"
borg create --list --verbose --filter AME --stats --show-rc --compression zstd,3 ::'{hostname}-{now}' $BACKUP_PATHS
info "Pruning snapshots"
borg prune --list --prefix '{hostname}-' --show-rc --keep-hourly $KEEP_HOURS --keep-daily $KEEP_DAYS --keep-weekly $KEEP_WEEKS --keep-monthly $KEEP_MONTHS --keep-yearly $KEEP_YEARS