diff options
author | Alex Auvolat <alex@adnab.me> | 2020-11-15 20:14:19 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-11-15 20:14:19 +0100 |
commit | 1bb9c7ce192dc962da15d6e0662d36755c9511e0 (patch) | |
tree | 2b7bc8d41bf29f54143d374c8bff4527dfee1492 /app/build/backup-consul | |
parent | f931dd939cd5109906399bd470497c9831e5d2f7 (diff) | |
download | infrastructure-1bb9c7ce192dc962da15d6e0662d36755c9511e0.tar.gz infrastructure-1bb9c7ce192dc962da15d6e0662d36755c9511e0.zip |
Add timestamp to backup
Diffstat (limited to 'app/build/backup-consul')
-rwxr-xr-x | app/build/backup-consul/do_backup.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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" |