aboutsummaryrefslogtreecommitdiff
path: root/app/build/backup-consul/do_backup.sh
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-01-16 17:07:01 +0100
committerAlex Auvolat <alex@adnab.me>2021-01-16 17:07:01 +0100
commitc74dc92febd1841c8ea5ff31caab0f941d57527d (patch)
treed05a203d95cac988952799667ec43c327a5d9038 /app/build/backup-consul/do_backup.sh
parent0c4ee40e01c95d7bf73236cbead5cc261f67eb9d (diff)
downloadinfrastructure-c74dc92febd1841c8ea5ff31caab0f941d57527d.tar.gz
infrastructure-c74dc92febd1841c8ea5ff31caab0f941d57527d.zip
Proposal: reorganize app/ folder by modules
Diffstat (limited to 'app/build/backup-consul/do_backup.sh')
-rwxr-xr-xapp/build/backup-consul/do_backup.sh20
1 files changed, 0 insertions, 20 deletions
diff --git a/app/build/backup-consul/do_backup.sh b/app/build/backup-consul/do_backup.sh
deleted file mode 100755
index a34e7b7..0000000
--- a/app/build/backup-consul/do_backup.sh
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/sh
-
-set -x -e
-
-cd /root
-
-chmod 0600 .ssh/id_ed25519
-
-cat > .ssh/config <<EOF
-Host backuphost
- HostName $TARGET_SSH_HOST
- Port $TARGET_SSH_PORT
- User $TARGET_SSH_USER
-EOF
-
-consul kv export | \
- gzip | \
- age -r "$(cat /root/.ssh/id_ed25519.pub)" | \
- ssh backuphost "cat > $TARGET_SSH_DIR/consul/$(date --iso-8601=minute)_consul_kv_export.gz.age"
-