This commit is contained in:
parent
b649d74d6a
commit
6bd1666a08
3 changed files with 10 additions and 0 deletions
|
@ -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
|
||||||
|
|
|
@ -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
7
sync-changes.sh
Normal 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"
|
Loading…
Add table
Reference in a new issue