diff options
author | Christopher Baines <mail@cbaines.net> | 2021-01-03 19:05:41 +0000 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2021-01-03 19:05:41 +0000 |
commit | 2a8a574f4ac8b943ff75e4753392e46e1745dce1 (patch) | |
tree | 98e57b7544ac853b7eab1611e767bb2f505675ae /scripts/guix-data-service-backup-database | |
parent | 3ae27baa010fbc49f1d0b94cf27bcbfcdde88698 (diff) | |
download | data-service-2a8a574f4ac8b943ff75e4753392e46e1745dce1.tar data-service-2a8a574f4ac8b943ff75e4753392e46e1745dce1.tar.gz |
Allow customising the pg_dump command used
As this
Diffstat (limited to 'scripts/guix-data-service-backup-database')
-rwxr-xr-x | scripts/guix-data-service-backup-database | 2 |
1 files changed, 1 insertions, 1 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" \ |