Blame SOURCES/quickstart_postgresql.txt

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