Run postgresql backup as postgres user
This commit is contained in:
parent
97ff057d3f
commit
8c37e9a179
2
ckupeye
2
ckupeye
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue