Install gcc & c++ compilers
yum install gcc gcc-c++
Download packages:
wget https://sourceforge.net/projects/bacula/files/bacula/5.0.2/bacula-5.0.2.tar.gz/download
tar -xzvf bacula-5.0.2.tar.gz
wget https://sourceforge.net/projects/bacula/files/depkgs/18Dec09/depkgs-18Dec09.tar.gz/download
tar -xzvf depkgs-18Dec09.tar.gz
mv depkgs bacula-5.0.2/
Compile it:
cd bacula-5.0.2/depkgs/
make
gmake mtx-install
cd ..
configure bacula
CFLAGS="-g -Wall" \
./configure \
--sbindir=$HOME/bacula/bin \
--sysconfdir=$HOME/bacula/bin \
--with-pid-dir=$HOME/bacula/bin/working \
--with-subsys-dir=$HOME/bacula/bin/working \
--enable-client-only \
--with-working-dir=$HOME/bacula/bin/working \
--with-dump-email=$USER
Install bacula
make install
How to start File daemon on start or add service
cd /root/bacula/bin
add content to file bacula
#! /bin/sh
# chkconfig: 2345 95 20
# description: Bacula Clien File Deamon
# processname: bacula
copy it to /etc/rc.d/init.d/
cp bacula /etc/rc.d/init.d/
chkconfig add bacula
No comments:
Post a Comment