Blame SOURCES/quickstart_postgresql.txt

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