Ubuntu/Debian

Bacula Systems provides BWeb packages for Debian and Ubuntu. You can use dpkg/apt to install them:

# dpkg -i bacula-enterprise-bweb-extrajs_6.4-1_all.deb
# dpkg -i bacula-enterprise-bweb_8.8.4-1_all.deb
#
# apt-get install -f       # fix dependencies

Or you can use apt-get (in this example, you need to replace @CUST@ with your private FRS URL, the @PLATFORM@ with your platform and the version with the one matching your core Bacula Enterprise Edition product):

deb https://www.baculasystems.com/dl/@CUST@/debs/bin/8.8.4/@PLATFORM@-64 @PLATFORM@ main
deb https://www.baculasystems.com/dl/@CUST@/debs/bweb/8.8.4/@PLATFORM@-64 @PLATFORM@ bweb
# apt-get install bacula-enterprise-bweb

Load BWeb Specific Functions to Bacula Catalog

On BWeb 6.4 and later, you can load BWeb specific SQL functions using the following script:

root# /opt/bweb/bin/install_bweb.sh

If your catalog is already configured, the script will print a lot of messages indicating that some “Objects already exist”. Everything should be OK.

If the script is unable to load BWeb specific functions to the catalog with a message such as “Permission denied” or “Unable to contact database server”, contact Bacula Systems support team to get help.

If your BWeb version doesn’t have the install_bweb.sh script, you can use the following procedure.

In some versions of PostgreSQL, you need to add the plpgsql language to the bacula database using the postgres super-user.

# su - postgres
postgres# createlang plpgsql -Upostgres -d bacula
postgres# exit

Then, you need to add BWeb specific tables to your Bacula catalog.

# su - bacula
bacula# psql -U bacula -f /opt/bweb/etc/bweb-postgresql.sql bacula

Or with MySQL

# mysql -u bacula bacula < /opt/bweb/etc/bweb-mysql.sql

Note that the suggested steps may not be applicable to all environments; for example, the bacula user may not be allowed to log in – knowledge of system administration may help, and Bacula Systems support is ready to assist if needed.

Start BWeb Service

By default, BWeb is using a dedicated service that you can start with

# /etc/init.d/bweb start

We strongly advise you to secure the default configuration file /opt/bweb/etc/httpd.conf by setting credentials and/or https navigation.

BWeb should be accessible through http://yourhost:9180/bweb/. The next step is to configure the DBI SQL Connection to match the Catalog resource of your bacula-dir.conf file.

DBI:      DBI:Pg:database=bacula;host=127.0.0.1
user:     bacula
password: xxxxxxxxxx

Or

DBI:      DBI:mysql:database=bacula;host=127.0.0.1
user:     bacula
password: xxxxxxxxxx

Naturally, if the catalog database is hosted on a different machine, the host will have to be changed accordingly.

Go back to Installation with Packages chapter.