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
2021-10-23 13:41:47 +09:00

46 lines
1,001 B
Text

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}'
remote_rate_limit: 1024
retention:
keep_daily: 7
keep_weekly: 4
keep_monthly: 3
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>