Skip to content
Snippets Groups Projects
Commit 1586b070 authored by kohleman's avatar kohleman
Browse files

added -U flag to specify the user openbis doing the pg_dump: -Uopenbis

SVN: 12901
parent 52adf992
No related branches found
No related tags found
No related merge requests found
...@@ -29,7 +29,7 @@ fi ...@@ -29,7 +29,7 @@ fi
umask 077 umask 077
echo "* Creating snapshot of productive databases at $DATE" echo "* Creating snapshot of productive databases at $DATE"
for DATABASE in $DATABASES; do for DATABASE in $DATABASES; do
$POSTGRES_BIN/pg_dump -Fc $DATABASE > $BACKUP_DIR/${DATE}_$DATABASE-db.dmp $POSTGRES_BIN/pg_dump -Uopenbis -Fc $DATABASE > $BACKUP_DIR/${DATE}_$DATABASE-db.dmp
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo -e "Postgres DB backup broken ... :-(" | $MAILX -s "Backup from $BOX for $DATABASE is BROKEN !" $MAIL_LIST echo -e "Postgres DB backup broken ... :-(" | $MAILX -s "Backup from $BOX for $DATABASE is BROKEN !" $MAIL_LIST
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment