aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2021-04-14 19:10:46 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2021-04-14 19:10:46 +0200
commit9dfff86cd2a504f3b4174f5c2498eec7f48f785a (patch)
tree67a6119413e598ce05127eef4d7b3c40866c609d
parentb851ca0c95b6735c809044a99cbdbfaadc450f91 (diff)
downloadinfrastructure-9dfff86cd2a504f3b4174f5c2498eec7f48f785a.tar.gz
infrastructure-9dfff86cd2a504f3b4174f5c2498eec7f48f785a.zip
Target a replicated server and not the main one
-rwxr-xr-xapp/backup/build/backup-matrix/do_backup.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/backup/build/backup-matrix/do_backup.sh b/app/backup/build/backup-matrix/do_backup.sh
index 9b84762..4da62bd 100755
--- a/app/backup/build/backup-matrix/do_backup.sh
+++ b/app/backup/build/backup-matrix/do_backup.sh
@@ -16,7 +16,7 @@ EOF
echo "export sql"
# note, -Fc means that postgresql compresses the output
export PGPASSWORD=$MATRIX_PSQL_PWD
-pg_dump -v -Fc -U $MATRIX_PSQL_USER -h psql-proxy.service.2.cluster.deuxfleurs.fr $MATRIX_PSQL_DB | \
+pg_dump -v -Fc -U $MATRIX_PSQL_USER -h datura.machine.deuxfleurs.fr -p 5433 $MATRIX_PSQL_DB | \
age -r "$(cat /root/.ssh/id_ed25519.pub)" | \
ssh backuphost "cat > $TARGET_SSH_DIR/matrix/db-$(date --iso-8601=minute).gz.age"