Installing Baculum on Centos 7

Baculum is the web interface of the Bacula backup system.

Downloading the required packages

                        $ wget
$ wget
$ wget
$ wget
$ wget

Install them

                        $ sudo yum localinstall baculum-*

Add some sudo permissions for apache user

                        $ sudo nano /etc/sudoers.d/baculum
#In case default Apache user:
Defaults:apache !requiretty
apache  ALL=NOPASSWD:  /usr/bin/bconsole
apache  ALL=NOPASSWD:  /usr/bin/bdirjson
apache  ALL=NOPASSWD:  /usr/bin/bsdjson
apache  ALL=NOPASSWD:  /usr/bin/bfdjson
apache  ALL=NOPASSWD:  /usr/bin/bbconsjson

Change directory permissions

                        $ sudo chown -R apache /opt/bacula/etc

Restart the rsyslog service

                        $ sudo  systemctl restart rsyslog

Add start the apache service and add it to startup

                        $ sudo systemctl enable httpd
$ sudo systemctl restart httpd

Opening ports

                        $ sudo firewall-cmd --permanent --zone=public --add-port=9095-9096/tcp
$ sudo firewall-cmd --reload

now go to the site http: //% ip%: 9096 / and set up the connection

                        = Language: English

= Catalog API
DB: PostgreSQL
DBName: bacula
Login: bacula
Password: bacula
IP adress: localhost
Port: 5432

= Console API
Bconsole binary file path: /usr/bin/bconsole
Bconsole admin config file path: /opt/bacula/etc/bconsole.conf
Use sudo: yes

= Config API
General configuration
	Directory path for new config files: /opt/bacula/working ($ sudo chown apache /opt/bacula/working)
	Use sudo: yes
	bdirjson binary file path: /usr/bin/bdirjson
	Main Director config file path (usually bacula-dir.conf): /opt/bacula/etc/bacula-dir.conf
Storage Daemon
	bsdjson binary file path: /usr/bin/bsdjson
	Main Storage Daemon config file path (usually bacula-sd.conf): /opt/bacula/etc/bacula-sd.conf
File Daemon/Client
	bfdjson binary file path: /usr/bin/bfdjson
	Main File Daemon config file path (usually bacula-fd.conf): /opt/bacula/etc/bacula-fd.conf
	bbconsjson binary file path: /usr/bin/bbconsjson
	Admin Bconsole config file path (usually bconsole.conf): /opt/bacula/etc/bconsole.conf

Next, go to the baculum web interface itself http: //% ip%: 9095 / and also set up the connection

                        Protocol: http
IP Address/Hostname: localhost
Port: 9096

Use HTTP Basic authentication

API Login: ...
API Password: ...

Related Posts