mirror of
git://git.savannah.gnu.org/guix/data-service.git
synced 2023-12-14 03:23:03 +01:00
Allow customising the pg_dump command used
As this
This commit is contained in:
parent
3ae27baa01
commit
2a8a574f4a
|
@ -15,7 +15,7 @@ DESTINATION_FILE_NAME="$BACKUP_DIRECTORY/$DATE/$FULL_BACKUP_NAME"
|
||||||
renice 19 -p $$ || true
|
renice 19 -p $$ || true
|
||||||
ionice -p $$ -c 3 || 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 \
|
--no-comments \
|
||||||
--username=guix_data_service \
|
--username=guix_data_service \
|
||||||
--file="$TEMPORARY_FILE_NAME" \
|
--file="$TEMPORARY_FILE_NAME" \
|
||||||
|
|
|
@ -350,7 +350,7 @@ EOF
|
||||||
|
|
||||||
TEMPORARY_FILE_NAME="${TMPDIR:-/tmp}/guix_data_service_small-$DATE.dump.tmp"
|
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 \
|
--format=custom --compress=9 --serializable-deferrable \
|
||||||
--no-comments \
|
--no-comments \
|
||||||
--username=guix_data_service \
|
--username=guix_data_service \
|
||||||
|
|
Loading…
Reference in a new issue