aboutsummaryrefslogtreecommitdiff
path: root/ci-setup.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2019-05-28 00:46:24 -0300
committerEuAndreh <eu@euandre.org>2019-05-28 00:49:16 -0300
commit83b0be5ae5abecd2076cab8b7ab2a84e9756034a (patch)
treeb0492f618208f5bc9c207721362ce16eba1b9034 /ci-setup.sh
parentAdd secrets/borg_remote{.pub} SSH keypair (diff)
downloadtoph-83b0be5ae5abecd2076cab8b7ab2a84e9756034a.tar.gz
toph-83b0be5ae5abecd2076cab8b7ab2a84e9756034a.tar.xz
Add backup routing before possibly tearing down machine
Create a new backup entry before running =terraform apply=, which may (or may not) destroy the current machine. This shouldn't be an issue for the backup itself, since all of the data should be stored in a separate Block Storage Volume, but we can take advantage of the sevices already needing to be taken down in order to perform a full backup of the data.
Diffstat (limited to 'ci-setup.sh')
-rwxr-xr-xci-setup.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/ci-setup.sh b/ci-setup.sh
index a5d0c0d..4c38993 100755
--- a/ci-setup.sh
+++ b/ci-setup.sh
@@ -14,6 +14,7 @@ echo "Done."
# git smudge after git-crypt clears file permissions
chmod 600 ./secrets/vps_box
+chmod 600 ./secrets/borg_remote
cat .envrc >> ~/.buildenv
source .envrc