forked from Deuxfleurs/infrastructure
Add timestamp to backup
This commit is contained in:
parent
f931dd939c
commit
1bb9c7ce19
2 changed files with 2 additions and 2 deletions
|
@ -16,5 +16,5 @@ EOF
|
||||||
consul kv export | \
|
consul kv export | \
|
||||||
gzip | \
|
gzip | \
|
||||||
age -r "$(cat /root/.ssh/id_ed25519.pub)" | \
|
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"
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ job "backup_periodic" {
|
||||||
driver = "docker"
|
driver = "docker"
|
||||||
|
|
||||||
config {
|
config {
|
||||||
image = "lxpz/backup_consul:11"
|
image = "lxpz/backup_consul:12"
|
||||||
volumes = [
|
volumes = [
|
||||||
"secrets/id_ed25519:/root/.ssh/id_ed25519",
|
"secrets/id_ed25519:/root/.ssh/id_ed25519",
|
||||||
"secrets/id_ed25519.pub:/root/.ssh/id_ed25519.pub",
|
"secrets/id_ed25519.pub:/root/.ssh/id_ed25519.pub",
|
||||||
|
|
Loading…
Reference in a new issue