[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/03: Allow customising the pg_dump command used
From: |
Christopher Baines |
Subject: |
01/03: Allow customising the pg_dump command used |
Date: |
Mon, 4 Jan 2021 14:16:03 -0500 (EST) |
cbaines pushed a commit to branch master
in repository data-service.
commit 2a8a574f4ac8b943ff75e4753392e46e1745dce1
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Sun Jan 3 19:05:41 2021 +0000
Allow customising the pg_dump command used
As this
---
scripts/guix-data-service-backup-database | 2 +-
scripts/guix-data-service-create-small-backup | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/guix-data-service-backup-database
b/scripts/guix-data-service-backup-database
index 77fda89..a5f38cd 100755
--- a/scripts/guix-data-service-backup-database
+++ b/scripts/guix-data-service-backup-database
@@ -15,7 +15,7 @@
DESTINATION_FILE_NAME="$BACKUP_DIRECTORY/$DATE/$FULL_BACKUP_NAME"
renice 19 -p $$ || true
ionice -p $$ -c 3 || true
-pg_dump --format=custom --compress=9 --serializable-deferrable \
+"${PG_DUMP:-pg_dump}" --format=custom --compress=9 --serializable-deferrable \
--no-comments \
--username=guix_data_service \
--file="$TEMPORARY_FILE_NAME" \
diff --git a/scripts/guix-data-service-create-small-backup
b/scripts/guix-data-service-create-small-backup
index 40a4509..285fdc2 100755
--- a/scripts/guix-data-service-create-small-backup
+++ b/scripts/guix-data-service-create-small-backup
@@ -350,7 +350,7 @@ EOF
TEMPORARY_FILE_NAME="${TMPDIR:-/tmp}/guix_data_service_small-$DATE.dump.tmp"
-pg_dump --username=guix_data_service \
+"${PG_DUMP:-pg_dump}" --username=guix_data_service \
--format=custom --compress=9 --serializable-deferrable \
--no-comments \
--username=guix_data_service \