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