aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2021-01-03 19:05:41 +0000
committerChristopher Baines <mail@cbaines.net>2021-01-03 19:05:41 +0000
commit2a8a574f4ac8b943ff75e4753392e46e1745dce1 (patch)
tree98e57b7544ac853b7eab1611e767bb2f505675ae /scripts
parent3ae27baa010fbc49f1d0b94cf27bcbfcdde88698 (diff)
downloaddata-service-2a8a574f4ac8b943ff75e4753392e46e1745dce1.tar
data-service-2a8a574f4ac8b943ff75e4753392e46e1745dce1.tar.gz
Allow customising the pg_dump command used
As this
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/guix-data-service-backup-database2
-rwxr-xr-xscripts/guix-data-service-create-small-backup2
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 \