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

View File

@@ -0,0 +1,39 @@
location:
source_directories:
- /shuttle/home
patterns:
- '- /shuttle/home/.snapshot'
- '- /shuttle/home/*/.cache'
repositories:
- /repo/home
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 "#"