Run postgresql backup as postgres user

This commit is contained in:
Geoffrey Frogeye 2020-02-04 15:57:06 +01:00
parent 97ff057d3f
commit 8c37e9a179
Signed by: geoffrey
GPG Key ID: D8A7ECA00A8CD3DD
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@ fi
if $EXPORT_POSTGRESQL if $EXPORT_POSTGRESQL
then then
echo → Exporting PostgreSQL echo → Exporting PostgreSQL
pg_dumpall $EXPORT_POSTGRESQL_OPTIONS | _feedExport "$EXPORT_POSTGRESQL_FILE" sudo -u postgres pg_dumpall $EXPORT_POSTGRESQL_OPTIONS | _feedExport "$EXPORT_POSTGRESQL_FILE"
EXPORT_FILES="$EXPORT_POSTGRESQL_FILE $EXPORT_FILES" EXPORT_FILES="$EXPORT_POSTGRESQL_FILE $EXPORT_FILES"
fi fi