From: Dan Langille Date: Sun, 19 Feb 2006 00:47:41 +0000 (+0000) Subject: - split an export into two lines so it works in all /bin/sh, not just Linux X-Git-Tag: Release-1.38.6~21 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=93634b4285b826cb7703e4a9e924078098587527;p=bacula%2Fbacula - split an export into two lines so it works in all /bin/sh, not just Linux - add the creation of the PostgreSQL database git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2790 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/cats/make_catalog_backup.in b/bacula/src/cats/make_catalog_backup.in index cdc11255b8..6c20a8ebd6 100755 --- a/bacula/src/cats/make_catalog_backup.in +++ b/bacula/src/cats/make_catalog_backup.in @@ -26,7 +26,8 @@ else else if test xpostgresql = x@DB_NAME@ ; then if test $# -gt 2; then - export PGPASSWORD=$3 + PGPASSWORD=$3 + export PGPASSWORD fi exec @SQL_BINDIR@/pg_dump -U $2 $1 >$1.sql else @@ -48,5 +49,6 @@ fi # To read back a PostgreSQL database use: # cd @working_dir@ # dropdb bacula +# createdb bacula # psql bacula