3 # shell script to create Bacula database(s)
9 # use SQL_ASCII to be able to put any filename into
10 # the database even those created with unusual character sets
11 ENCODING="ENCODING 'SQL_ASCII'"
13 # use UTF8 if you are using standard Unix/Linux LANG specifications
14 # that use UTF8 -- this is normally the default and *should* be
15 # your standard. Bacula works correctly *only* with correct UTF8.
17 # Note, with this encoding, if you have any "weird" filenames on
18 # your system (names generated from Win32 or Mac OS), you may
19 # get Bacula batch insert failures.
21 #ENCODING="ENCODING 'UTF8'"
23 if createdb $* ${db_name}
25 echo "Creation of ${db_name} database succeeded."
27 echo "Creation of ${db_name} database failed."