Compilation bacula
Installation Qt 4.8.4: qt-everywhere-opensource-src-4.8.6.tar.gz
DAEMON_USER=bacula
DAEMON_GROUP=bacula
DIRECTOR_DAEMON_USER=${DAEMON_USER}
STORAGE_DAEMON_USER=${DAEMON_USER}
FILE_DAEMON_USER=root
STORAGE_DAEMON_GROUP=${DAEMON_GROUP}
WORKING_DIR=/var/lib/bacula
BACULA-DIRECTOR=asperience1
export LD_LIBRARY_PATH=/usr/local/Trolltech/Qt-4.8.6/lib:$LD_LIBRARY_PATH
export PATH=/usr/local/Trolltech/Qt-4.8.6/bin:$PATH
./configure --prefix=/var/lib/bacula \
--sbindir=/var/lib/bacula \
--with-sbin-perm=755 \
--sysconfdir=/var/lib/bacula/config \
--with-archivedir=/var/lib/bacula/storage \
--with-scriptdir=/var/lib/bacula/scripts \
--with-plugindir=/var/lib/bacula/plugins \
--with-working-dir=/var/lib/bacula \
--with-pid-dir=/var/lib/bacula \
--with-bsrdir=/var/lib/bacula \
--with-logdir=/var/log/bacula \
--with-subsys-dir=/var/lock \
--disable-acl \
--enable-smartalloc \
--enable-conio \
--enable-readline \
--enable-batch-insert \
--enable-dynamic-cats-backends \
--enable-bat \
--enable-traymonitor \
--enable-xattr \
--enable-scsi-crypto \
--enable-lockmgr \
--enable-ndmp \
--enable-ipv6 \
--with-mysql \
--with-tcp-wrappers \
--with-openssl \
--with-systemd \
--with-python \
--with-dir-user=${DIRECTOR_DAEMON_USER} \
--with-dir-group=${DAEMON_GROUP} \
--with-sd-user=${STORAGE_DAEMON_USER} \
--with-sd-group=${STORAGE_DAEMON_GROUP} \
--with-fd-user=${FILE_DAEMON_USER} \
--with-fd-group=${DAEMON_GROUP} \
--with-dir-password="XXX_REPLACE_WITH_DIRECTOR_PASSWORD_XXX" \
--with-fd-password="XXX_REPLACE_WITH_CLIENT_PASSWORD_XXX" \
--with-sd-password="XXX_REPLACE_WITH_STORAGE_PASSWORD_XXX" \
--with-mon-dir-password="XXX_REPLACE_WITH_DIRECTOR_MONITOR_PASSWORD_XXX" \
--with-mon-fd-password="XXX_REPLACE_WITH_CLIENT_MONITOR_PASSWORD_XXX" \
--with-mon-sd-password="XXX_REPLACE_WITH_STORAGE_MONITOR_PASSWORD_XXX" \
--with-basename=${BACULA-DIRECTOR} \
--with-hostname=${BACULA-DIRECTOR} \
--enable-includes
Ajouter le user et le groupe bacula
Installation bacula
make
sudo make install
Création de la base:
./create_mysql_database -u root -p
Population de la base:
./make_mysql_tables -u root -p
Assignation des privilèges:
./grant_mysql_privileges -u root -p