Simone Caronni aa69fd
======== PostgreSQL, MySQL and SQLite databases
Simone Caronni aa69fd
Simone Caronni aa69fd
Bacula director supports different databases backends, if you want to switch
Simone Caronni aa69fd
away from the default PostgreSQL one you need to change the "libbaccats" (the
Simone Caronni aa69fd
catalogue library) symlink to the real library.
Simone Caronni aa69fd
Simone Caronni aa69fd
To change to a different backend, issue the following command:
Simone Caronni aa69fd
Simone Caronni aa69fd
# alternatives --config libbaccats.so
Simone Caronni aa69fd
Simone Caronni aa69fd
There are 3 programs which provide 'libbaccats.so'.
Simone Caronni aa69fd
Simone Caronni aa69fd
  Selection    Command
Simone Caronni aa69fd
-----------------------------------------------
Simone Caronni aa69fd
   1           /usr/lib64/libbaccats-mysql.so
Simone Caronni aa69fd
   2           /usr/lib64/libbaccats-sqlite3.so
Simone Caronni aa69fd
*+ 3           /usr/lib64/libbaccats-postgresql.so
Simone Caronni aa69fd
Simone Caronni aa69fd
Enter to keep the current selection[+], or type selection number: 1
Simone Caronni aa69fd
Simone Caronni aa69fd
There is NO need to edit any part in the Bacula Director configuration; for the
Simone Caronni aa69fd
purposes of the database creation steps, the bacula-dir.conf configuration file
Simone Caronni aa69fd
can be left at their default values.
Simone Caronni aa69fd
Simone Caronni aa69fd
======== Switiching between PostgreSQL, MySQL and SQLite backends
Simone Caronni aa69fd
Simone Caronni aa69fd
To switch the configured backend to another one, follow the above procedure.
Simone Caronni aa69fd
Again, there's no need to edit the Bacula Director configuration file; the
Simone Caronni aa69fd
catalog resource can be left as is.
Simone Caronni aa69fd
Simone Caronni aa69fd
Importing and exporting data between the various database formats is up to the
Simone Caronni aa69fd
user. If the database will be re-initialized from scratch, follow the quick
Simone Caronni aa69fd
start guides mentioned above.