Revert "remove borg in favour of borgmatic"

This reverts commit e7c473264d.
This commit is contained in:
2020-11-11 14:20:27 +01:00
parent 5173e5f33b
commit c3511b23d5
4 changed files with 75 additions and 0 deletions

9
borg/.bin/borg_backup Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
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