container-server/setup/backup/config.template.yaml

37 lines
658 B
YAML

source_directories:
- ${BASE_DIR}
- /tmp/container-server
repositories:
- path: ${BORG_REPO}
label: remote repo
exclude_patterns:
- '*/lost+found'
- ${BASE_DIR}/*/psql
- ${BASE_DIR}/games
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/setup/backup/prepare-backup.sh
after_backup:
- /opt/container-server/setup/backup/cleanup-backup.sh