Skip to content

Instantly share code, notes, and snippets.

@dominicpratt
Last active June 2, 2022 14:15
Show Gist options
  • Save dominicpratt/d9592f8134da4d1b01c97751786e5888 to your computer and use it in GitHub Desktop.
Save dominicpratt/d9592f8134da4d1b01c97751786e5888 to your computer and use it in GitHub Desktop.
hetzner storagebox borgmatic configuration
location:
source_directories:
- /etc
- /var/www
one_file_system: true
repositories:
- uXXXXXX-subX@uXXXXXX.your-storagebox.de:backup
exclude_patterns:
exclude_caches: true
exclude_if_present: .nobackup
storage:
ssh_command: ssh -p 23
relocated_repo_access_is_ok: true
compression: auto,zstd
encryption_passphrase: CHANGEME
archive_name_format: '{hostname}-{now}'
retention:
keep_daily: 7
keep_weekly: 4
keep_monthly: 12
keep_yearly: 2
prefix: '{hostname}-'
consistency:
checks:
- archives
check_last: 3
prefix: '{hostname}-'
hooks:
mysql_databases:
- name: all
healthchecks: https://hc-ping.com/21930c93-f62b-4c6a-b00d-8e579adcdcf5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment