Skip to content

Instantly share code, notes, and snippets.

@angristan
Created July 29, 2018 20:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angristan/c8a324d2df65596eefe756c9b8f57af5 to your computer and use it in GitHub Desktop.
Save angristan/c8a324d2df65596eefe756c9b8f57af5 to your computer and use it in GitHub Desktop.
borgmatic example
location:
source_directories:
- /backup/lyra/files/rsync
one_file_system: true
repositories:
- /backup/lyra/files/borg
storage:
compression: zstd
umask: 0077
archive_name_format: 'lyra_files_{now:%Y-%m-%d_%H-%M}'
retention:
keep_daily: 7
keep_weekly: 4
keep_monthly: 6
prefix: "lyra_files"
consistency:
checks:
- repository
- archives
check_last: 1
hooks:
before_backup:
- echo "`date` - Starting borg files for lyra."
after_backup:
- echo "`date` - Finished borg files for lyra."
on_error:
- echo "`date` - Error while creating borg files for lyra."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment