Revert "remove borg in favour of borgmatic"
This reverts commit e7c473264d.
This commit is contained in:
9
borg/.bin/borg_backup
Executable file
9
borg/.bin/borg_backup
Executable 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
|
||||
Reference in New Issue
Block a user