Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.