diff options
Diffstat (limited to 'app/build/backup-consul/do_backup.sh')
-rwxr-xr-x | app/build/backup-consul/do_backup.sh | 20 |
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" - |