Blame SOURCES/quickstart_postgresql.txt

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