|
|
811809 |
======== Quick installation guide with the default PostgreSQL backend ========
|
|
|
811809 |
|
|
|
811809 |
Perform the following commands to install Bacula with its default configuration
|
|
|
811809 |
and all daemons and consoles in one server.
|
|
|
811809 |
|
|
|
811809 |
1) Install packages
|
|
|
811809 |
|
|
|
811809 |
# yum -y install postgresql-server \
|
|
|
811809 |
bacula-director bacula-storage bacula-client \
|
|
|
811809 |
bacula-console bacula-console-bat
|
|
|
811809 |
|
|
|
811809 |
2) Select the PostgreSQL database backend
|
|
|
811809 |
|
|
|
811809 |
# alternatives --set libbaccats.so /usr/lib64/libbaccats-postgresql.so
|
|
|
811809 |
|
|
|
811809 |
3) Create database
|
|
|
811809 |
|
|
|
811809 |
# postgresql-setup initdb
|
|
|
811809 |
# systemctl enable postgresql.service
|
|
|
811809 |
# systemctl start postgresql.service
|
|
|
811809 |
|
|
|
811809 |
# su - postgres
|
|
|
811809 |
$ cd /usr/libexec/bacula
|
|
|
811809 |
$ ./create_bacula_database
|
|
|
811809 |
$ ./make_bacula_tables
|
|
|
811809 |
$ ./grant_bacula_privileges
|
|
|
811809 |
|
|
|
811809 |
4) Change passwords in /etc/bacula/*.conf with something you like.
|
|
|
811809 |
|
|
|
811809 |
# sed -i -e 's/@@DIR_PASSWORD@@/dir-password/g' \
|
|
|
811809 |
-e 's/@@FD_PASSWORD@@/fd-password/g' \
|
|
|
811809 |
-e 's/@@SD_PASSWORD@@/sd-password/g' \
|
|
|
811809 |
-e 's/@@MON_DIR_PASSWORD@@/mon-dir-password/g' \
|
|
|
811809 |
-e 's/@@MON_FD_PASSWORD@@/mon-fd-password/g' \
|
|
|
811809 |
-e 's/@@MON_SD_PASSWORD@@/mon-sd-password/g' \
|
|
|
811809 |
/etc/bacula/*.conf
|
|
|
811809 |
|
|
|
811809 |
5) Enable daemons and check they are working
|
|
|
811809 |
|
|
|
811809 |
# systemctl enable bacula-dir.service
|
|
|
811809 |
# systemctl enable bacula-sd.service
|
|
|
811809 |
# systemctl enable bacula-fd.service
|
|
|
811809 |
|
|
|
811809 |
# systemctl start bacula-dir.service
|
|
|
811809 |
# echo status bacula-dir | bconsole
|
|
|
811809 |
|
|
|
811809 |
# systemctl start bacula-sd.service
|
|
|
811809 |
# echo status bacula-sd | bconsole
|
|
|
811809 |
|
|
|
811809 |
# systemctl start bacula-fd.service
|
|
|
811809 |
# echo status bacula-fd | bconsole
|
|
|
811809 |
|
|
|
811809 |
6) To grant console access to regular users add the read permission to the
|
|
|
811809 |
console configuration files. Remember that there is no authentication check; so
|
|
|
811809 |
a user that can launch the console can perform any command.
|
|
|
811809 |
|
|
|
811809 |
# chmod +r /etc/bacula/bconsole.conf /etc/bacula/bat.conf
|