This repository has been archived on 2025-02-14. You can view files and clone it, but cannot push or open issues or pull requests.
pyinfra-lxd/files/borgmatic.yaml_clear

47 lines
1,001 B
Text
Raw Normal View History

2021-01-31 20:04:51 +09:00
location:
source_directories:
- /var/backups
2021-01-31 20:06:07 +09:00
one_file_system: false
2021-01-31 20:04:51 +09:00
repositories:
- <repo>
2021-01-31 20:04:51 +09:00
exclude_patterns:
- ~/*/.cache
exclude_caches: true
exclude_if_present: .nobackup
storage:
compression: auto,zstd
encryption_passphrase: '<passphrase>'
2021-01-31 20:04:51 +09:00
archive_name_format: '{hostname}-{now}'
2021-10-23 13:41:47 +09:00
remote_rate_limit: 1024
2021-01-31 20:04:51 +09:00
retention:
2021-09-04 21:40:03 +09:00
keep_daily: 7
2021-01-31 20:04:51 +09:00
keep_weekly: 4
2021-09-04 21:40:03 +09:00
keep_monthly: 3
2021-01-31 20:04:51 +09:00
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"
2021-02-01 19:31:54 +09:00
- /usr/local/bin/lxd-export.sh
2021-02-01 19:42:43 +09:00
- /usr/local/bin/lxd-databases.sh
2021-01-31 20:04:51 +09:00
after_backup:
- echo "`date` - Finished backup"
2021-02-01 19:31:54 +09:00
healthchecks: <healthchecks>