diff --git a/container-config/borgmatic/config.yaml b/container-config/borgmatic/config.yaml index 2d30e68..3afe7eb 100644 --- a/container-config/borgmatic/config.yaml +++ b/container-config/borgmatic/config.yaml @@ -8,6 +8,8 @@ source_directories: repositories: - label: remote path: ${BORG_REMOTE} + - label: remote2 + path: ${BORG_REMOTE2} encryption_passphrase: ${BORG_PASSWORD} keep_daily: 7 keep_weekly: 4 diff --git a/server/etc/containers/systemd/borgmatic.container b/server/etc/containers/systemd/borgmatic.container index 8a2f4d5..002ae40 100644 --- a/server/etc/containers/systemd/borgmatic.container +++ b/server/etc/containers/systemd/borgmatic.container @@ -13,6 +13,7 @@ Tmpfs=/root/.cache/borg Environment=BACKUP_CRON="0 0 * * *" Secret=BORG_PASSWORD,type=env Secret=BORG_REMOTE,type=env +Secret=BORG_REMOTE2,type=env AutoUpdate=registry [Install] WantedBy=multi-user.target diff --git a/sync-changes.sh b/sync-changes.sh new file mode 100644 index 0000000..1df2134 --- /dev/null +++ b/sync-changes.sh @@ -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"