======== Quick installation guide with the default PostgreSQL backend ======== Perform the following commands to install Bacula with its default configuration and all daemons and consoles in one server. 1) Install packages # yum -y install postgresql-server \ bacula-director bacula-storage bacula-client \ bacula-console bacula-console-bat 2) Select the PostgreSQL database backend # alternatives --set libbaccats.so /usr/lib64/libbaccats-postgresql.so 3) Create database # postgresql-setup initdb # systemctl enable postgresql.service # systemctl start postgresql.service # su - postgres $ cd /usr/libexec/bacula $ ./create_bacula_database $ ./make_bacula_tables $ ./grant_bacula_privileges 4) Change passwords in /etc/bacula/*conf with something you like. # sed -i -e 's/@@DIR_PASSWORD@@/dir-Fedora/g' \ -e 's/@@FD_PASSWORD@@/fd-Fedora/g' \ -e 's/@@SD_PASSWORD@@/sd-Fedora/g' \ -e 's/@@MON_DIR_PASSWORD@@/mon-dir-Fedora/g' \ -e 's/@@MON_FD_PASSWORD@@/mon-fd-Fedora/g' \ -e 's/@@MON_SD_PASSWORD@@/mon-sd-Fedora/g' \ /etc/bacula/*conf 5) Enable daemons and check they are working # systemctl enable bacula-dir.service # systemctl enable bacula-sd.service # systemctl enable bacula-fd.service # systemctl start bacula-dir.service # echo status bacula-dir | bconsole # systemctl start bacula-sd.service # echo status bacula-sd | bconsole # systemctl start bacula-fd.service # echo status bacula-fd | bconsole 6) Install the docs and read them # yum -y install bacula-docs 7) If you don't backup to disk and have a tape library or autochanger, please also install the magnetic tapes commands: # yum -y install mt-st mtx