From 4b8f5c03c5930f95e0ecc513cfca9b17557762ff Mon Sep 17 00:00:00 2001 From: erebion Date: Tue, 20 Aug 2024 14:31:31 +0200 Subject: [PATCH] disable compression for backing up the Synapse DB, as this slows down backups and the whole server massively --- roles/unhb_backup_scripts/templates/restic-backup_unhb4.sh.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/unhb_backup_scripts/templates/restic-backup_unhb4.sh.j2 b/roles/unhb_backup_scripts/templates/restic-backup_unhb4.sh.j2 index 1b835c3..06ae506 100755 --- a/roles/unhb_backup_scripts/templates/restic-backup_unhb4.sh.j2 +++ b/roles/unhb_backup_scripts/templates/restic-backup_unhb4.sh.j2 @@ -17,7 +17,7 @@ fi echo "Now dumping databases, this might take a while..." set -x -docker exec -t matrix_sql.server4 pg_dumpall -c -U user_synapse_unhb > /opt/db_dumps/db-dump-synapse_db.sql +docker exec -t matrix_sql.server4 pg_dump -Z0 -c -U user_synapse_unhb -d synapse_db > /opt/db_dumps/db-dump-synapse_db.sql docker exec -t authentik-postgresql-1.server4 pg_dumpall -c -U authentik > /opt/db_dumps/db-dump-authentik_db.sql docker exec -t hedgedoc_sql15.server4 pg_dumpall -c -U md > /opt/db_dumps/db-dump-hedgedoc_db.sql docker exec -t tandoor-tandoor_recipes_db-1 pg_dumpall -c -U djangouser > /opt/db_dumps/db-dump-tandoor_db.sql