From 8c37e9a17900afda8bd93f21e1e11b6864800970 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geoffrey=20=E2=80=9CFrogeye=E2=80=9D=20Preud=27homme?= Date: Tue, 4 Feb 2020 15:57:06 +0100 Subject: [PATCH] Run postgresql backup as postgres user --- ckupeye | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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