File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
controllers/spec/template/yaml Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -120,9 +120,9 @@ data:
120120 backUpFilePath="$BACKUP_DESTINATION_FOLDER/$backUpFileName"
121121
122122 echo "$dt - Starting DB backup of Kubegres resource $KUBEGRES_RESOURCE_NAME into file: $backUpFilePath";
123- echo "$dt - Running: pg_dumpall -h $BACKUP_SOURCE_DB_HOST_NAME -U postgres -c | gzip > $backUpFilePath"
123+ echo "$dt - Running: pg_dumpall -h $BACKUP_SOURCE_DB_HOST_NAME -U $POSTGRES_USER -c | gzip > $backUpFilePath"
124124
125- pg_dumpall -h $BACKUP_SOURCE_DB_HOST_NAME -U postgres -c | gzip > $backUpFilePath
125+ pg_dumpall -h $BACKUP_SOURCE_DB_HOST_NAME -U $POSTGRES_USER -c | gzip > $backUpFilePath
126126
127127 if [ $? -ne 0 ]; then
128128 rm $backUpFilePath
Original file line number Diff line number Diff line change @@ -189,7 +189,7 @@ data:
189189 echo "$dt - Starting DB backup of Kubegres resource $KUBEGRES_RESOURCE_NAME into file: $backUpFilePath";
190190 echo "$dt - Running: pg_dumpall -h $BACKUP_SOURCE_DB_HOST_NAME -U postgres -c | gzip > $backUpFilePath"
191191
192- pg_dumpall -h $BACKUP_SOURCE_DB_HOST_NAME -U postgres -c | gzip > $backUpFilePath
192+ pg_dumpall -h $BACKUP_SOURCE_DB_HOST_NAME -U $POSTGRES_USER -c | gzip > $backUpFilePath
193193
194194 if [ $? -ne 0 ]; then
195195 rm $backUpFilePath
You can’t perform that action at this time.
0 commit comments