mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-18 10:47:31 -08:00
change backup paradigm for borg
This commit is contained in:
parent
afd51564ce
commit
f75cb097ac
15
home/dot_config/borgmatic.d/kestrel_bulk.yaml
Normal file
15
home/dot_config/borgmatic.d/kestrel_bulk.yaml
Normal file
@ -0,0 +1,15 @@
|
||||
source_directories:
|
||||
- "/home/tstarr"
|
||||
|
||||
exclude_patterns:
|
||||
- "/home/tstarr/.?*"
|
||||
- "/home/tstarr/mnt"
|
||||
- "/home/tstarr/tmp"
|
||||
- "/home/tstarr/sync"
|
||||
- "/home/tstarr/media/roms"
|
||||
- "/home/tstarr/box"
|
||||
- "/home/tstarr/Downloads"
|
||||
|
||||
archive_name_format: 'kestrel_bulk.borg-{now}'
|
||||
|
||||
<<: !include kestrel_common.yaml
|
@ -1,15 +1,7 @@
|
||||
source_directories:
|
||||
- "/home/tstarr"
|
||||
|
||||
exclude_patterns:
|
||||
- "/home/tstarr/.?*"
|
||||
- "/home/tstarr/mnt"
|
||||
- "/home/tstarr/tmp"
|
||||
- "/home/tstarr/sync"
|
||||
- "/home/tstarr/media/roms"
|
||||
- "/home/tstarr/box"
|
||||
- "/home/tstarr/Downloads"
|
||||
|
||||
archive_name_format: 'kestrel.borg-{now}'
|
||||
repositories:
|
||||
- path: ssh://tstarr@torus//engi/store/kestrel.borg
|
||||
label: torus
|
||||
- path: ssh://fm2120@fm2120.rsync.net//data2/home/fm2120/store/kestrel.borg
|
||||
label: rsync
|
||||
|
||||
<<: !include common.yaml
|
||||
|
@ -1,7 +0,0 @@
|
||||
repositories:
|
||||
- path: ssh://fm2120@fm2120.rsync.net//data2/home/fm2120/store/kestrel.borg
|
||||
label: rsync
|
||||
|
||||
remote_path: borg1
|
||||
|
||||
<<: !include kestrel_common.yaml
|
@ -1,5 +0,0 @@
|
||||
repositories:
|
||||
- path: ssh://tstarr@torus//engi/store/kestrel.borg
|
||||
label: torus
|
||||
|
||||
<<: !include kestrel_common.yaml
|
17
home/dot_config/borgmatic.d/torus_apps.yaml
Normal file
17
home/dot_config/borgmatic.d/torus_apps.yaml
Normal file
@ -0,0 +1,17 @@
|
||||
source_directories:
|
||||
- /engi/apps
|
||||
|
||||
exclude_patterns:
|
||||
- '**/code-server/config/**'
|
||||
- '**/code-server/workspace/**'
|
||||
- '**/immich/library/**'
|
||||
|
||||
before_backup:
|
||||
- stop-docker-containers
|
||||
|
||||
after_backup:
|
||||
- restore-docker-containers
|
||||
|
||||
archive_name_format: 'torus_apps.borg-{now}'
|
||||
|
||||
<<: !include torus_common.yaml
|
11
home/dot_config/borgmatic.d/torus_bulk.yaml
Normal file
11
home/dot_config/borgmatic.d/torus_bulk.yaml
Normal file
@ -0,0 +1,11 @@
|
||||
source_directories:
|
||||
- /engi/backup # Static files and service dumps
|
||||
#- /home/tstarr/Sync # Syncthing files
|
||||
|
||||
before_backup:
|
||||
- "tree /engi > /engi/backup/tree.txt"
|
||||
- sudo -u gitea backup-dump-gitea
|
||||
|
||||
archive_name_format: 'torus_bulk.borg-{now}'
|
||||
|
||||
<<: !include torus_common.yaml
|
@ -1,13 +1,7 @@
|
||||
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}'
|
||||
repositories:
|
||||
- path: /media/clone/store/torus.borg
|
||||
label: drive
|
||||
- path: ssh://fm2120@fm2120.rsync.net//data2/home/fm2120/store/torus.borg
|
||||
label: rsync
|
||||
|
||||
<<: !include common.yaml
|
||||
|
@ -1,10 +0,0 @@
|
||||
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
|
@ -1,10 +0,0 @@
|
||||
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