2 rem shell script to create Bacula database(s)
\r
7 rem use SQL_ASCII to be able to put any filename into
\r
8 rem the database even those created with unusual character sets
\r
9 ENCODING="ENCODING 'SQL_ASCII'"
\r
10 rem use UTF8 if you are using standard Unix/Linux LANG specifications
\r
11 rem that use UTF8 -- this is normally the default and *should* be
\r
12 rem your standard. Bacula consoles work correctly *only* with UTF8.
\r
13 rem ENCODING="ENCODING 'UTF8'"
\r
15 $bindir/psql -f create_postgresql_database.sql -d template1 $*
\r
16 if ERRORLEVEL 1 GOTO :ERROR
\r
17 echo "Creation of bacula database succeeded."
\r
22 echo "Creation of bacula database failed."
\r