2023-10-18 19:54:47 +02:00
|
|
|
source_directories:
|
|
|
|
- ${BASE_DIR}
|
|
|
|
- /tmp/container-server
|
|
|
|
|
|
|
|
repositories:
|
|
|
|
- path: ${BORG_REPO}
|
|
|
|
label: remote repo
|
|
|
|
|
|
|
|
exclude_patterns:
|
|
|
|
- '*/lost+found'
|
2023-10-29 20:22:54 +01:00
|
|
|
- ${BASE_DIR}/*/psql
|
|
|
|
- ${BASE_DIR}/games
|
2023-10-18 19:54:47 +02:00
|
|
|
|
|
|
|
compression: auto,zstd
|
|
|
|
encryption_passphrase: "${BORG_PASSPHRASE}"
|
|
|
|
archive_name_format: "{hostname}-{now:%Y-%m-%d-%H%M%S}"
|
|
|
|
|
|
|
|
retries: 5
|
|
|
|
retry_wait: 5
|
|
|
|
|
|
|
|
keep_daily: 3
|
|
|
|
keep_weekly: 4
|
|
|
|
keep_monthly: 12
|
|
|
|
|
|
|
|
checks:
|
|
|
|
- name: repository
|
|
|
|
frequency: 4 weeks
|
|
|
|
- name: archives
|
|
|
|
frequency: 8 weeks
|
|
|
|
|
|
|
|
check_last: 3
|
|
|
|
|
|
|
|
before_backup:
|
|
|
|
- /opt/container-server/backup/prepare-backup.sh
|
|
|
|
|
|
|
|
# after_backup:
|
|
|
|
# - echo "`date` - Finished backup"
|