container-server/backup/config.template.yaml

38 lines
646 B
YAML
Raw Normal View History

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
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
2024-06-13 15:22:46 +02:00
after_backup:
- /opt/container-server/backup/cleanup-backup.sh