1. Solve Deps:
zypper install postgresql91-server postgresql91-devel readline-devel mtx mt_st gcc gcc-c++ make zlib-devel
2. Start Postgres:
/etc/init.d/postgresql start
3. Edit pg_hba.conf to allow local connections (e.g: change from ident to trust):
vi /var/lib/pgsql/data/pg_hba.conf
/etc/init.d/postgresql restart
4. Download and uncompress Bacula sourcecode
(e.g.: /usr/src/bacula-7.0.5)
*5. Solve a Bacula 7.0.5 bug, if applicable. Change ECHO value to: ECHO=/bin/echo, file:
vi ./autoconf/Make.common.in
6. ./configure, make, make install, make install-autostart:
./configure --with-readline=/usr/include/readline --disable-conio --bindir=/usr/bin --sbindir=/usr/sbin --with-scriptdir=/usr/libexec/bacula/ --with-working-dir=/var/spool/bacula/ --with-logdir=/var/log --enable-smartalloc --with-postgresql --with-archivedir=/mnt/backup --with-job-email=email@domain.com --with-hostname=192.168.206.242
make -j 8
make install && make install-autostart
7. Fix Bacula start script. Remove -g and -u from the start command in the files:
vi /etc/init.d/bacula-fd.conf
vi /etc/init.d/bacula-sd.conf
vi /etc/init.d/bacula-dir.conf
7. Create Bacula database, tables and database users:
cd /usr/libexec/bacula/
chmod o+rx ./create_postgresql_database
chmod o+rx ./make_postgresql_tables
chmod o+rx ./grant_postgresql_privileges
su postgres
./create_postgresql_database
./make_postgresql_tables
./create_postgresql_database
8. Start Bacula Daemons:
/etc/init.d/bacula-fd start
/etc/init.d/bacula-sd start
/etc/init.d/bacula-dir start
Disponível em: Português (Portuguese (Brazil))English