Blame SOURCES/quickstart_sqlite3.txt

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