mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-18 10:47:31 -08:00
backup docker containers on torus
This commit is contained in:
parent
d84e57d9a2
commit
171d95f420
@ -1,31 +0,0 @@
|
||||
source_directories:
|
||||
- /engi/apps # Docker containers and data
|
||||
#- /engi/backup # Static files and service dumps
|
||||
#- /home/tstarr/Sync # Syncthing files on Torus
|
||||
|
||||
exclude_patterns:
|
||||
- 'code-server/config/*'
|
||||
- 'code-server/workspace/*'
|
||||
- 'immich/library/*'
|
||||
|
||||
archive_name_format: 'borg-torus-{now}'
|
||||
repositories:
|
||||
#- path: ssh://user@backupserver/./sourcehostname.borg
|
||||
# label: backupserver
|
||||
- path: /engi/backup/borg/borg-apps
|
||||
label: local
|
||||
|
||||
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
|
||||
|
||||
keep_daily: 7
|
||||
keep_weekly: 4
|
||||
keep_monthly: 6
|
||||
|
||||
encryption_passphrase: "***REMOVED***"
|
24
home/dot_config/borgmatic.d/torus_common.yaml
Normal file
24
home/dot_config/borgmatic.d/torus_common.yaml
Normal file
@ -0,0 +1,24 @@
|
||||
source_directories:
|
||||
- /engi/apps # Docker containers and data
|
||||
#- /engi/backup # Static files and service dumps
|
||||
#- /home/tstarr/Sync # Syncthing files on Torus
|
||||
|
||||
exclude_patterns:
|
||||
- '**/code-server/config/**'
|
||||
- '**/code-server/workspace/**'
|
||||
- '**/immich/library/**'
|
||||
|
||||
archive_name_format: 'torus.borg-{now}'
|
||||
|
||||
keep_daily: 7
|
||||
keep_weekly: 4
|
||||
keep_monthly: 6
|
||||
|
||||
encryption_passcommand: cat /run/agenix/borg/torus/password
|
||||
compression: zstd,22
|
||||
checks:
|
||||
- name: repository
|
||||
- name: spot
|
||||
count_tolerance_percentage: 10
|
||||
data_sample_percentage: 1
|
||||
data_tolerance_percentage: 0.5
|
10
home/dot_config/borgmatic.d/torus_kestrel.yaml
Normal file
10
home/dot_config/borgmatic.d/torus_kestrel.yaml
Normal file
@ -0,0 +1,10 @@
|
||||
repositories:
|
||||
- path: ssh://tstarr@kestrel//store/torus.borg
|
||||
label: kestrel
|
||||
|
||||
before_backup:
|
||||
- "tree /engi > /engi/backup/tree.txt"
|
||||
#- sudo -u gitea backup-dump-gitea
|
||||
- stop-docker-containers
|
||||
|
||||
<<: !include torus_common.yaml
|
10
home/dot_config/borgmatic.d/torus_rsync.yaml
Normal file
10
home/dot_config/borgmatic.d/torus_rsync.yaml
Normal file
@ -0,0 +1,10 @@
|
||||
repositories:
|
||||
- path: ssh://fm2120@fm2120.rsync.net//data2/home/fm2120/store/torus.borg
|
||||
label: rsync
|
||||
|
||||
after_backup:
|
||||
- restore-docker-containers
|
||||
|
||||
remote_path: borg1
|
||||
|
||||
<<: !include torus_common.yaml
|
Loading…
x
Reference in New Issue
Block a user