aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2019-06-06 20:39:43 -0300
committerEuAndreh <eu@euandre.org>2019-06-06 20:40:18 -0300
commita53af7b7287bb5341892956751c2a75301b6b433 (patch)
tree33752743842e216c1b81c9e6fcddc48c932684c7
parentAdd mode to all files being copied by Ansible (diff)
downloadserver-a53af7b7287bb5341892956751c2a75301b6b433.tar.gz
server-a53af7b7287bb5341892956751c2a75301b6b433.tar.xz
Allow backups to fail for now
-rw-r--r--TODOs.org1
-rwxr-xr-xscripts/ci/provision.sh2
2 files changed, 2 insertions, 1 deletions
diff --git a/TODOs.org b/TODOs.org
index 368b185..fc1e3f3 100644
--- a/TODOs.org
+++ b/TODOs.org
@@ -139,6 +139,7 @@ Right now the script fails on Terraform commands before reaching git commands. I
** TODO Email verbose (Ansible) log files in case of error
builds.sr.ht only emails the link. Should it be extended to support encrypted log attachments?
** TODO Use environment variables for SSH key paths and volume mounts
+** TODO Don't allow backups to fail
* Must
** Fully deployable from code
Use NixOps and Terraform to fully automate all of the configuration.
diff --git a/scripts/ci/provision.sh b/scripts/ci/provision.sh
index a56d9f6..3c0c04a 100755
--- a/scripts/ci/provision.sh
+++ b/scripts/ci/provision.sh
@@ -24,7 +24,7 @@ setup_borg_files() {
echo "Shutting down running containers and backing up data..."
ssh "$TLD" "cd /home/vps/ && docker-compose down"
setup_borg_files ./scripts/box/create-backup.env.sh create-backup.sh
-ssh "$TLD" /home/vps/create-backup.sh
+ssh "$TLD" /home/vps/create-backup.sh ||:
echo "Done."
echo "Initializing Terraform..."