This page describes the installation of Bacula 7 on CentOS 7 using a MariaDB backend.
According to the change log, you can use the older file daemons from the standard repository: “Older File Daemons should be compatible with the 7.0.0 Director and Storage daemons. There should be no need to upgrade older File Daemons.”
yum groupinstall "Development Tools" yum install ncurses-devel readline-devel qt qt-devel lzo-devel dejavu-* export PATH=/usr/lib64/qt4/bin/:$PATH
yum install mariadb-server mariadb-devel
systemctl enable mariadb.service systemctl start mariadb.service
/usr/bin/mysqladmin -u root password 'new-password' /usr/bin/mysqladmin -u root -h <your fqdn> password 'new-password'
groupadd -g 1999 bacula useradd -c "Bacula Director" -u 2000 -g 1999 -M -N -s /sbin/nologin bacula-dir useradd -c "Bacula Storage daemon" -u 2001 -g 1999 -M -N -s /sbin/nologin bacula-sd
CFLAGS="-g -O2 -Wall" \ ./configure \ --prefix=/opt/bacula \ --with-scriptdir=/opt/bacula/scripts \ --with-logdir=/opt/bacula/log \ --mandir=/usr/local/share/man \ --enable-smartalloc \ --with-mysql \ --with-dump-email=youremail@domain \ --with-job-email=youremail@domain \ --with-smtp-host=mail.server \ --with-dir-user=bacula-dir \ --with-dir-group=bacula \ --with-sd-user=bacula-sd \ --with-sd-group=bacula \ --with-systemd \ --enable-bat \ --enable-lzo \ --disable-conio \ --enable-readline \
make
make install
mkdir /opt/bacula/log chmod g+w /opt/bacula/log
chgrp -R bacula /opt/bacula
/opt/bacula/scripts/create_bacula_database -u root -p
/opt/bacula/scripts/make_bacula_tables -u root -p
/opt/bacula/scripts/grant_bacula_privileges -u root -p
Helpful documentation:
/opt/bacula/sbin/bacula start