User Tools

Site Tools


howto_compile_and_install_bacula_on_debian_4.0_etch

This HowTo was tested on Debian 4.0 and with bacula ver. 2.2.6

Make sure that the IP of the Bacula server is on the first line of the Hosts file (the real IP not 127.0.0.1)
# vim /etc/hosts
Download and install all dependencies
# apt-get install mysql-server gcc libmysqlclient15-dev g++ make libncurses5-dev
Download the source file and save it to the root home folder

you can choose one of the mirrors: Sourceforge - Bacula Download

For example:

# wget http://heanet.dl.sourceforge.net/sourceforge/bacula/bacula-2.2.6.tar.gz
Extract the compressed files
# tar –xvvf bacula-2.2.6.tar.gz
Compile the Bacula source file
# cd bacula-2.2.6
# ./configure –with-mysql
# make
# make install
Configure the MySql server to work with Bacula
# cd src/cats
# ./create_mysql_database
# ./make_mysql_tables
# ./grant_mysql_privileges
Create and install the services
# cp /etc/bacula/bacula-ctl-fd /etc/init.d/bacula-fd
# cp /etc/bacula/bacula-ctl-dir /etc/init.d/bacula-director
# cp /etc/bacula/bacula-ctl-sd /etc/init.d/bacula-sd
# chmod 755 /etc/init.d/bacula-sd
# chmod 755 /etc/init.d/bacula-fd
# chmod 755 /etc/init.d/bacula-director
# update-rc.d bacula-sd defaults 90
# update-rc.d bacula-fd defaults 91
# update-rc.d bacula-director defaults 92
Start the services
# /etc/init.d/bacula-sd start
# /etc/init.d/bacula-fd start
# /etc/init.d/bacula-director start
howto_compile_and_install_bacula_on_debian_4.0_etch.txt · Last modified: 2008/04/29 16:20 by eitant