diff --git a/ckupeye b/ckupeye index c8c5a62..2929446 100755 --- a/ckupeye +++ b/ckupeye @@ -190,7 +190,7 @@ fi if $EXPORT_POSTGRESQL then 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" fi