aboutsummaryrefslogtreecommitdiff
path: root/app/backup
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2021-04-15 12:38:31 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2021-04-15 12:38:31 +0200
commit87303033d115c1f4da67433c5adc01577311f4c3 (patch)
tree047d2a9f3ab1efce9bde0ca409774f671cc1857c /app/backup
parent9dfff86cd2a504f3b4174f5c2498eec7f48f785a (diff)
downloadinfrastructure-87303033d115c1f4da67433c5adc01577311f4c3.tar.gz
infrastructure-87303033d115c1f4da67433c5adc01577311f4c3.zip
Debug stolon backup
Diffstat (limited to 'app/backup')
-rwxr-xr-xapp/backup/build/backup-matrix/do_backup.sh2
-rw-r--r--app/backup/deploy/backup-matrix.hcl2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/backup/build/backup-matrix/do_backup.sh b/app/backup/build/backup-matrix/do_backup.sh
index 4da62bd..74cd9da 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 datura.machine.deuxfleurs.fr -p 5433 $MATRIX_PSQL_DB | \
+pg_dump -v -Fc -U $MATRIX_PSQL_USER -h 192.168.0.2 -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"
diff --git a/app/backup/deploy/backup-matrix.hcl b/app/backup/deploy/backup-matrix.hcl
index 8d0eb32..1c85e38 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:2"
+ image = "superboum/backup_matrix:3"
volumes = [
"secrets/id_ed25519:/root/.ssh/id_ed25519",
"secrets/id_ed25519.pub:/root/.ssh/id_ed25519.pub",