2024-09-06 22:44:32 -07:00
|
|
|
source_directories:
|
2024-09-13 18:40:05 -07:00
|
|
|
- /engi/apps # Docker containers and data
|
|
|
|
#- /engi/backup # Static files and service dumps
|
|
|
|
#- /home/tstarr/Sync # Syncthing files on Torus
|
2024-09-06 22:44:32 -07:00
|
|
|
|
|
|
|
exclude_patterns:
|
|
|
|
- 'code-server/config/*'
|
|
|
|
- 'code-server/workspace/*'
|
|
|
|
- 'immich/library/*'
|
|
|
|
|
2024-09-13 18:40:05 -07:00
|
|
|
archive_name_format: 'borg-torus-{now}'
|
2024-09-06 22:44:32 -07:00
|
|
|
repositories:
|
|
|
|
#- path: ssh://user@backupserver/./sourcehostname.borg
|
|
|
|
# label: backupserver
|
|
|
|
- path: /engi/backup/borg/borg-apps
|
|
|
|
label: local
|
|
|
|
|
2024-09-13 18:40:05 -07:00
|
|
|
before_backup:
|
|
|
|
- echo "Running pre-backup scripts! $(date)" >> /engi/test/test.txt
|
|
|
|
- tree /engi > /engi/backup/tree.txt
|
|
|
|
- stop-docker-containers
|
|
|
|
#- sudo -u gitea backup-dump-gitea
|
|
|
|
|
|
|
|
after_backup:
|
|
|
|
- restore-docker-containters
|
2024-09-06 22:44:32 -07:00
|
|
|
|
|
|
|
keep_daily: 7
|
|
|
|
keep_weekly: 4
|
|
|
|
keep_monthly: 6
|
|
|
|
|
|
|
|
encryption_passphrase: "***REMOVED***"
|