Linux: Bacula Enterprise Installation with Package Manager on RHEL/CentOS

The following article aims at explaining how to install Bacula Enterprise components with the use of Package Manager on RehHat/CentOS 7/Rocky Linux/Alma Linux.

Prerequisites

  • signature keys imported:

    • download:

    wget -P /tmp https://www.baculasystems.com/dl/@@customer@@/BaculaSystems-Public-Signature-08-2017.asc
    

    @@customer@@ refers to your personalized area string. You can find your personalized URL (Download Area) from the Customer Portal (Your subscription in the menu on the left). The URL has this format: https://www.baculasystems.com/dl/@@customer@@

    -import:

    rpm --import /tmp/BaculaSystems-Public-Signature-08-2017.asc
    
    • remove:

    rm /tmp/BaculaSystems-Public-Signature-08-2017.asc
    
  • PostgreSQL installed, please run this command to

install it:

yum install postgresql-server

Initialize the PostgreSQL database engine:

postgresql-setup initdb

Configure the PostgreSQL service to start at boot time:

systemctl enable postgresql.service

Start PostgreSQL:

systemctl start postgresql.service

By default, PostgreSQL uses the IDENT method and accepts the local “bacula” user credentials.

Steps

  1. Configure package manager:

Warning

RHEL7 uses rpm version 4.11 which does not support GPG with subkeys. Bacula Systems uses subkeys to sign newer distribution packages. In RHEL7 / Centos7 one must disable gpg check gpgcheck=0 in order to avoid NOKEY warnings.

If you would like to enable gpgcheck, you can install dnf (which supports subkeys) and use it to install Bacula Enterprise instead of yum.

Fedora bug tracker:

RPM Release notes:

Add the following to a file /etc/yum.repos.d/bacula.repo

[Bacula-Enterprise]
name= Bacula Enterprise
baseurl=https://www.baculasystems.com/dl/@@customer@@/rpms/bin/@@bee-version@@/@@rhel@@-@@arch@@/
enabled=1
protect=0
gpgcheck=1

@@bee-version@@ should be replaced by the version of Bacula Enterprise you purchased (14.x.y, 12.x.y)

@@rhel@@ is the version of your RedHat/CentOS distribution (8/7)

@@arch@@ Architecture: 32 or 64 bit

A complete example may look like this:

[Bacula-Enterprise]
name=Red Hat Enterprise - Bacula - Enterprise
baseurl=https://www.baculasystems.com/dl/Customer-123456/rpms/bin/14.0.6/rhel7-64/
enabled=1
protect=0
gpgcheck=1
  1. Update your package manager and verify your Bacula Enterprise repositories are correctly configured:

yum update
  1. Run this command to install the Bacula Enterprise packages:

yum install bacula-enterprise-postgresql
  1. Run the following commands to create the database and grant ownership:

su - postgres
/opt/bacula/scripts/create_postgresql_database
/opt/bacula/scripts/make_postgresql_tables
/opt/bacula/scripts/grant_postgresql_privileges
exit

Result

PostgreSQL: Director, Storage Daemon and Client installed.

Post-installation Suggestions

Launch the Bacula daemons:

systemctl start bacula-fd.service
systemctl start bacula-sd.service
systemctl start bacula-dir.service

Post-installation advice:

If you are using tape libraries, you might want to add the bacula user to the “tape” group.

gpasswd -a bacula tape

Go back to Linux: Installation with Package Manager.