add borgmatic configuration

This commit is contained in:
2024-11-14 14:17:28 +01:00
parent 944d8f97ab
commit d03036eafb
8 changed files with 373 additions and 0 deletions

42
borgmatic/config/opt.yaml Normal file
View File

@@ -0,0 +1,42 @@
location:
source_directories:
- /shuttle/opt
patterns:
- '- /shuttle/opt/.snapshot'
- '- /shuttle/opt/jupyter/conda'
- '- /shuttle/opt/emby/metadata'
- '- /shuttle/opt/btsync/var/*.journal*'
- '- /shuttle/opt/openvpn-server/*.log'
repositories:
- /repo/opt
storage:
compression: lz4
archive_name_format: '{now:%Y-%m-%d}'
retention:
keep_daily: 7
keep_weekly: 4
keep_monthly: 6
prefix: '20'
consistency:
checks:
- repository
- archives
check_last: 3
prefix: '20'
hooks:
before_backup:
- echo -e "\n\n"
- echo "#"
- echo "# `date` - Starting a backup job."
- echo "#"
after_backup:
- echo "#"
- echo "# `date` - Backup created."
- echo "#"
on_error:
- echo "#"
- echo "# `date` - Error while creating a backup."
- echo "#"