From 796c129a36d17ac79c9c065b7d4c2da4483fab3d Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Thu, 14 May 2020 20:49:46 +0100 Subject: [PATCH] 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. --- scripts/guix-data-service-backup-database | 1 + 1 file changed, 1 insertion(+) 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"