aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/box/run-backup.env.sh2
-rwxr-xr-xscripts/ci/provision.sh5
2 files changed, 4 insertions, 3 deletions
diff --git a/scripts/box/run-backup.env.sh b/scripts/box/run-backup.env.sh
index e1ecdf0..bd506e9 100755
--- a/scripts/box/run-backup.env.sh
+++ b/scripts/box/run-backup.env.sh
@@ -2,7 +2,7 @@
export BORG_REMOTE_PATH="${BORG_REMOTE_PATH}"
export BORG_PASSPHRASE="${BORG_PASSPHRASE}"
-# The configured $BORG_REPO is already the rsync.net remote.
+# The configured $BORG_REPO is already the rsync remote.
# No need to send the files after the backup is done.
borg create \
--verbose \
diff --git a/scripts/ci/provision.sh b/scripts/ci/provision.sh
index d4121b1..1000a55 100755
--- a/scripts/ci/provision.sh
+++ b/scripts/ci/provision.sh
@@ -10,8 +10,9 @@ export VPS_COMMIT_SHA
echo "Shutting down running containers and backing up data..."
ssh "$TLD" "cd /home/vps/ && docker-compose down"
-scp ./secrets/borg/borg_remote.pub "$TLD":/root/.ssh/id_rsa.pub
-scp ./secrets/borg/borg_remote "$TLD":/root/.ssh/id_rsa
+scp ./secrets/borg/borg-remote.pub "$TLD":/root/.ssh/id_rsa.pub
+scp ./secrets/borg/borg-remote "$TLD":/root/.ssh/id_rsa
+scp ./secrets/borg/known-hosts.txt "$TLD":/root/.ssh/known_hosts
ssh "$TLD" 'chmod 600 /root/.ssh/id_rsa'
envsubst < ./scripts/box/run-backup.env.sh | ssh "$TLD" 'cat > /home/vps/run-backup.sh && chmod +x /home/vps/run-backup.sh'
ssh "$TLD" /home/vps/run-backup.sh