Blame SOURCES/quickstart_sqlite3.txt

6d394f
======== Quick installation guide with the SQLite 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 sqlite \
6d394f
    bacula-director bacula-storage bacula-client \
6d394f
    bacula-console bacula-console-bat
6d394f
6d394f
2) Select the SQLite database backend
6d394f
6d394f
# alternatives --set libbaccats.so /usr/lib64/libbaccats-sqlite3.so
6d394f
6d394f
3) Create database
6d394f
6d394f
# cd /usr/libexec/bacula
6d394f
# ./create_bacula_database sqlite3
6d394f
# ./make_bacula_tables sqlite3
6d394f
# ./grant_bacula_privileges sqlite3
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