2838d68
# Features
f5d09cc
2838d68
- Standard components: `director`, `storage`, `client`, `docs`, `bconsole`.
2838d68
- Graphical components: `bat`, `bacula-tray-monitor`.
e0efc06
- Tab completion for bconsole.
489c4ae
- Nagios plugin.
f5d09cc
- HTML/PDF docs.
e0efc06
- Quick start guides.
f5d09cc
- File Daemon bpipe-fd plugin.
f5d09cc
- POSIX.1e capabilities for File Daemon.
e0efc06
- GZIP/LZO compression.
2838d68
- Static uid/gid of 133 (see `setup` package).
763fb25
- SQL libraries needed only by Director and Storage daemons.
e0efc06
- SQL backend management through the alternatives system.
e0efc06
2838d68
# Quick start
e0efc06
e0efc06
Please look at the following files for a quick start with the various database
e0efc06
backends:
e0efc06
2838d68
- `quickstart_mysql.txt`
2838d68
- `quickstart_postgresql.txt`
2838d68
- `quickstart_sqlite3.txt`
f5d09cc
2838d68
# PostgreSQL, MySQL and SQLite databases
f5d09cc
470e008
Bacula director supports different databases backends, if you want to switch
2838d68
away from the default PostgreSQL one you need to change the `libbaccats` (the
470e008
catalogue library) symlink to the real library.
470e008
470e008
To change to a different backend, issue the following command:
2838d68
```
470e008
# alternatives --config libbaccats.so
2838d68
```
470e008
2838d68
There are 3 libraries which provide `libbaccats.so`.
2838d68
```
470e008
  Selection    Command
470e008
-----------------------------------------------
470e008
   1           /usr/lib64/libbaccats-mysql.so
470e008
   2           /usr/lib64/libbaccats-sqlite3.so
470e008
*+ 3           /usr/lib64/libbaccats-postgresql.so
2838d68
```
2838d68
Enter to keep the current selection`[+]`, or type selection number: `1`
470e008
470e008
There is NO need to edit any part in the Bacula Director configuration; for the
2838d68
purposes of the database creation steps, the `bacula-dir.conf` configuration file
470e008
can be left at their default values.
470e008
2838d68
## Switiching between PostgreSQL, MySQL and SQLite backends
470e008
470e008
To switch the configured backend to another one, follow the above procedure.
470e008
Again, there's no need to edit the Bacula Director configuration file; the
470e008
catalog resource can be left as is.
470e008
470e008
Importing and exporting data between the various database formats is up to the
470e008
user. If the database will be re-initialized from scratch, follow the quick
470e008
start guides mentioned above.
f5d09cc
2838d68
# Upgrading from old Redhat releases
f5b1393
2838d68
When upgrading from old Redhat releases, the `bacula-libs-sql` package takes
e0efc06
care of making the appropriate selection for the database backend based on what
e0efc06
was previously configured on the old system.
f5b1393
2838d68
The default permissions in the `/etc/bacula` folder have changed; please perform
e0efc06
the following commands for restoring the permissions for the correct operation
e0efc06
of the daemons.
2838d68
```
e0efc06
# chown -R root:root /etc/bacula
e0efc06
# chmod 755 /etc/bacula
e0efc06
# chmod 640 /etc/bacula/*
e0efc06
# chgrp bacula /etc/bacula/bacula-dir.conf /etc/bacula/query.sql
2838d68
```
e0efc06
All the files that are part of the Director configuration (included with @) must
e0efc06
of course have the same permissions as the main configuration file.
f5b1393
2838d68
# Documentation
f5d09cc
e0efc06
To see all the available documentation in both HTML and PDF formats, please
2838d68
install the `bacula-docs` package.
ebc87ab
2838d68
# Granting user access to the console
ebc87ab
ebc87ab
The console configuration files are normally readable only by root for security
ebc87ab
reasons. If you need to grant access to a specific user or group of users to
ebc87ab
the consoles, you can adjust the ACLs on the configuration files. For example:
2838d68
```
ebc87ab
# setfacl -m u:user:r /etc/bacula/bconsole.conf /etc/bacula/bat.conf
2838d68
```
ebc87ab
This way the user 'user' can open the console without superuser privileges.