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