Allow customising the pg_dump command used

As this
This commit is contained in:
Christopher Baines 2021-01-03 19:05:41 +00:00
parent 3ae27baa01
commit 2a8a574f4a
2 changed files with 2 additions and 2 deletions

View File

@ -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" \

View File

@ -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 \