diff options
author | Christopher Baines <mail@cbaines.net> | 2020-05-16 08:42:00 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2020-05-16 08:42:00 +0100 |
commit | 9c72fc23dc7350300be0f18538eb9691ef058d40 (patch) | |
tree | ccd0577bd2870a61b3189278bc36d9451350d174 /scripts/guix-data-service-create-small-backup | |
parent | 796c129a36d17ac79c9c065b7d4c2da4483fab3d (diff) | |
download | data-service-9c72fc23dc7350300be0f18538eb9691ef058d40.tar data-service-9c72fc23dc7350300be0f18538eb9691ef058d40.tar.gz |
Move around --no-tablespaces
Turns out, at the moment, this is ineffective when combined with the archive
formats, like the custom format in use. Therefore, move it to the pg_restore
command, where hopefully it'll work.
Diffstat (limited to 'scripts/guix-data-service-create-small-backup')
-rwxr-xr-x | scripts/guix-data-service-create-small-backup | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/guix-data-service-create-small-backup b/scripts/guix-data-service-create-small-backup index 9020f3a..2a84f42 100755 --- a/scripts/guix-data-service-create-small-backup +++ b/scripts/guix-data-service-create-small-backup @@ -32,6 +32,7 @@ psql --no-psqlrc "$URI" --command="CREATE DATABASE $TMP_DATABASE_NAME WITH OWNER URI_FOR_DATABASE="${URI/test/$TMP_DATABASE_NAME}" pg_restore --username=guix_data_service --jobs=8 --dbname="$URI_FOR_DATABASE" \ + --no-tablespaces \ "$BACKUP_DIRECTORY/$DATE/$FULL_BACKUP_NAME" psql -v ON_ERROR_STOP=1 --echo-queries --no-psqlrc "$URI_FOR_DATABASE" -U guix_data_service <<EOF |