From 1586b070c7c0fc768d6def19258bd70233de4aa2 Mon Sep 17 00:00:00 2001
From: kohleman <kohleman>
Date: Mon, 12 Oct 2009 08:24:27 +0000
Subject: [PATCH] added -U flag to specify the user openbis doing the pg_dump:
 -Uopenbis

SVN: 12901
---
 openbis_all/source/bash/createOpenBISBackup_general.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/openbis_all/source/bash/createOpenBISBackup_general.sh b/openbis_all/source/bash/createOpenBISBackup_general.sh
index a3522a21f1d..1b8115dbbe8 100755
--- a/openbis_all/source/bash/createOpenBISBackup_general.sh
+++ b/openbis_all/source/bash/createOpenBISBackup_general.sh
@@ -29,7 +29,7 @@ fi
 umask 077
 echo "* Creating snapshot of productive databases at $DATE"
 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
         echo -e "Postgres DB backup broken ... :-(" | $MAILX -s "Backup from $BOX for $DATABASE is BROKEN !" $MAIL_LIST
     else 
-- 
GitLab