Move borgmatic template to a git-crypt file

This commit is contained in:
Benoit S 2021-09-04 21:34:37 +09:00
parent 6bf3843489
commit 13f3ccf78d
5 changed files with 5 additions and 10 deletions

BIN
files/borgmatic.yaml Normal file

Binary file not shown.

View file

@ -0,0 +1,46 @@
location:
source_directories:
- /var/backups
one_file_system: false
repositories:
- <repo>
exclude_patterns:
- ~/*/.cache
exclude_caches: true
exclude_if_present: .nobackup
storage:
compression: auto,zstd
encryption_passphrase: '<passphrase>'
archive_name_format: '{hostname}-{now}'
retention:
keep_daily: 3
keep_weekly: 4
keep_monthly: 12
keep_yearly: 2
prefix: '{hostname}-'
consistency:
checks:
# uncomment to always do integrity checks. (takes long time for large repos)
#- repository
- disabled
check_last: 3
prefix: '{hostname}-'
hooks:
# List of one or more shell commands or scripts to execute before creating a backup.
before_backup:
- echo "`date` - Starting backup"
- /usr/local/bin/lxd-export.sh
- /usr/local/bin/lxd-databases.sh
after_backup:
- echo "`date` - Finished backup"
healthchecks: <healthchecks>