aboutsummaryrefslogtreecommitdiff
path: root/app/backup/deploy
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2021-04-17 12:21:13 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2021-04-17 12:21:13 +0200
commit338a8ec7da79ecaccb70f2fbd7cecd385a32fae7 (patch)
treeb63ea14497c6eb0099370182b7c6052e843af41c /app/backup/deploy
parent3135c385054ebd4955c992a1c616eb20c97e0683 (diff)
downloadinfrastructure-338a8ec7da79ecaccb70f2fbd7cecd385a32fae7.tar.gz
infrastructure-338a8ec7da79ecaccb70f2fbd7cecd385a32fae7.zip
Try to migrate to pg_basebackup
Diffstat (limited to 'app/backup/deploy')
-rw-r--r--app/backup/deploy/backup-matrix.hcl7
1 files changed, 3 insertions, 4 deletions
diff --git a/app/backup/deploy/backup-matrix.hcl b/app/backup/deploy/backup-matrix.hcl
index 1c85e38..cb28c90 100644
--- a/app/backup/deploy/backup-matrix.hcl
+++ b/app/backup/deploy/backup-matrix.hcl
@@ -7,7 +7,7 @@ job "backup_manual_matrix" {
driver = "docker"
config {
- image = "superboum/backup_matrix:3"
+ image = "superboum/backup_matrix:4"
volumes = [
"secrets/id_ed25519:/root/.ssh/id_ed25519",
"secrets/id_ed25519.pub:/root/.ssh/id_ed25519.pub",
@@ -27,9 +27,8 @@ TARGET_SSH_USER={{ key "secrets/backup/target_ssh_user" }}
TARGET_SSH_PORT={{ key "secrets/backup/target_ssh_port" }}
TARGET_SSH_HOST={{ key "secrets/backup/target_ssh_host" }}
TARGET_SSH_DIR={{ key "secrets/backup/target_ssh_dir" }}
-MATRIX_PSQL_DB={{ key "secrets/chat/synapse/postgres_db" }}
-MATRIX_PSQL_USER={{ key "secrets/chat/synapse/postgres_user" }}
-MATRIX_PSQL_PWD={{ key "secrets/chat/synapse/postgres_pwd" }}
+REPL_PSQL_USER={{ key "secrets/postgres/keeper/pg_repl_username" }}
+REPL_PSQL_PWD={{ key "secrets/postgres/keeper/pg_repl_pwd" }}
EOH
destination = "secrets/env_vars"