\begin{enumerate}
\item cd \lt{}install-directory\gt{}
- This directory contains the Bacula catalog interface routines.
+ This directory contains the Bacula catalog interface routines.
-\item ./create\_bacula\_database
-
- This script creates the PostgreSQL {\bf bacula} database.
- Before running this command, you should carefully think about
- what encoding sequence you want for the text fields (paths, files, ...).
- Ideally, the encoding should be set to UTF8. However, many Unix systems
- have filenames that are not encoded in UTF8, either because you have
- not set UTF8 as your default character set or because you have imported
- files from elsewhere (e.g. MacOS X). For this reason, Bacula uses
- SQL\_ASCII as the default encoding. If you want to change this,
- please modify the script before running it, but be forewarned that
- Bacula backups will fail if PostgreSQL finds any non-UTF8 sequences.
-
- If running the script fails, it is probably because the database is
- owned by a user other than yourself. On many systems, the database
+\item Create the database owner ({\bf bacula})
+ On many systems, the PostreSQL master
owner is {\bf pgsql} and on others such as Red Hat and Fedora it is {\bf
postgres}. You can find out which it is by examining your /etc/passwd
file. To create a new user under either your name or with say the name
su
(enter root password)
su pgsql (or postgres)
- createuser kern (or perhaps bacula)
+ createuser bacula
Shall the new user be allowed to create databases? (y/n) y
Shall the new user be allowed to create more new users? (y/n) (choose
what you want)
exit
\end{verbatim}
-
- At this point, you should be able to execute the
- ./create\_bacula\_database command.
+ Normally the {\bf bacula} user must be able to create new databases,
+ if you use the script in the next item,
+ or you will have to create one for it, but it does not need to
+ create new users.
+
+\item ./create\_bacula\_database
+
+ This script creates the PostgreSQL {\bf bacula} database.
+ Before running this command, you should carefully think about
+ what encoding sequence you want for the text fields (paths, files, ...).
+ We strongly recommend that you use the default value of SQL\_ASCII
+ that is in the create\_bacula\_database script. Please be warned
+ that if you change this value, your backups may fail. After running
+ the script, you can check with the command:
+
+\begin{verbatim}
+ psql -l
+\end{verbatim}
+
+ and the column marked {\bf Encoding} should be {\bf SQL\_ASCII} for
+ all your Bacula databases (normally {\bf bacula}).
\item ./make\_bacula\_tables