From 25774d88025d0b1ae411421bb536929cbcc70a80 Mon Sep 17 00:00:00 2001 From: Dan Langille Date: Sun, 19 Feb 2006 00:47:41 +0000 Subject: [PATCH] - 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 --- bacula/src/cats/make_catalog_backup.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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