Add second borg remote
All checks were successful
ShellCheck / shellcheck (push) Successful in 18s

This commit is contained in:
Mathieu Strypsteen 2024-12-29 19:51:01 +01:00
parent b649d74d6a
commit 6bd1666a08
Signed by: mathieu
GPG key ID: 782A42E461BC6824
3 changed files with 10 additions and 0 deletions

View file

@ -8,6 +8,8 @@ source_directories:
repositories: repositories:
- label: remote - label: remote
path: ${BORG_REMOTE} path: ${BORG_REMOTE}
- label: remote2
path: ${BORG_REMOTE2}
encryption_passphrase: ${BORG_PASSWORD} encryption_passphrase: ${BORG_PASSWORD}
keep_daily: 7 keep_daily: 7
keep_weekly: 4 keep_weekly: 4

View file

@ -13,6 +13,7 @@ Tmpfs=/root/.cache/borg
Environment=BACKUP_CRON="0 0 * * *" Environment=BACKUP_CRON="0 0 * * *"
Secret=BORG_PASSWORD,type=env Secret=BORG_PASSWORD,type=env
Secret=BORG_REMOTE,type=env Secret=BORG_REMOTE,type=env
Secret=BORG_REMOTE2,type=env
AutoUpdate=registry AutoUpdate=registry
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

7
sync-changes.sh Normal file
View file

@ -0,0 +1,7 @@
#!/bin/bash
set -euo pipefail
ssh infra "cd /var/lib/system-config; git pull; ./setup.sh infra"
ssh home "cd /var/lib/system-config; git pull; ./setup.sh home"
ssh sandbox "cd /var/lib/system-config; git pull; ./setup.sh sandbox"
ssh vps "cd /var/lib/system-config; git pull; ./setup.sh vps"