aboutsummaryrefslogtreecommitdiff
path: root/scripts/guix-data-service-backup-database
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2020-05-14 20:49:46 +0100
committerChristopher Baines <mail@cbaines.net>2020-05-14 20:49:46 +0100
commit796c129a36d17ac79c9c065b7d4c2da4483fab3d (patch)
tree867533613eb9b45396baf06c9adcb1217c88995d /scripts/guix-data-service-backup-database
parenta21d3d3cf7ea197b9c7efa4150e8b637154202ab (diff)
downloaddata-service-796c129a36d17ac79c9c065b7d4c2da4483fab3d.tar
data-service-796c129a36d17ac79c9c065b7d4c2da4483fab3d.tar.gz
Don't include tablespace assignments in the backup dump
This is a comprimise, as this won't help restoring the backup in situations you want tablespaces, but I'm currently viewing tablespaces as a deployment concern, so maybe the right thing to do is exclude them. This approach will at least keep the same behaviour in terms of restoring the backups locally. This will fix the small dump creation process on data.guix.gnu.org, which is currently broken because of the tablespace assignments when trying to restore the backups.
Diffstat (limited to 'scripts/guix-data-service-backup-database')
-rwxr-xr-xscripts/guix-data-service-backup-database1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/guix-data-service-backup-database b/scripts/guix-data-service-backup-database
index 77fda89..a3a39c0 100755
--- a/scripts/guix-data-service-backup-database
+++ b/scripts/guix-data-service-backup-database
@@ -17,6 +17,7 @@ ionice -p $$ -c 3 || true
pg_dump --format=custom --compress=9 --serializable-deferrable \
--no-comments \
+ --no-tablespaces \
--username=guix_data_service \
--file="$TEMPORARY_FILE_NAME" \
"$DATABASE_NAME"