From 1bb9c7ce192dc962da15d6e0662d36755c9511e0 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Sun, 15 Nov 2020 20:14:19 +0100 Subject: Add timestamp to backup --- app/build/backup-consul/do_backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/build') diff --git a/app/build/backup-consul/do_backup.sh b/app/build/backup-consul/do_backup.sh index 4dbae2a..a34e7b7 100755 --- a/app/build/backup-consul/do_backup.sh +++ b/app/build/backup-consul/do_backup.sh @@ -16,5 +16,5 @@ EOF consul kv export | \ gzip | \ age -r "$(cat /root/.ssh/id_ed25519.pub)" | \ - ssh backuphost "cat > $TARGET_SSH_DIR/consul/consul_kv_export.gz.age" + ssh backuphost "cat > $TARGET_SSH_DIR/consul/$(date --iso-8601=minute)_consul_kv_export.gz.age" -- cgit v1.2.3