Linux: Installation on RHEL based distributions
Welcome to the guide for installing Bacula Enterprise on RHEL based systems. This documentation ensures you have the necessary steps to get Bacula up and running on your system with ease.
Steps
Import the official Bacula Enterprise key:
sudo rpm --import https://www.baculasystems.com/dl/@@customer-id@@/BaculaSystems-Public-Signature-08-2017.ascReplace @@customer-id@@ with your customer-specific ID which can be found in your Bacula Systems Customer Portal.
Install PostgreSQL using dnf:
sudo dnf install postgresql-server
Initialize the PostgreSQL database engine:
postgresql-setup initdb
Start PostgreSQL and enable start at runtime:
systemctl start postgresql.service systemctl enable postgresql.service
Configure the Bacula Enterprise yum repository:
RHEL_VER=rhel$(cat /etc/redhat-release | grep -oP '(?<=release )\d+') echo -e "[bacula-enterprise]\nname=Bacula Enterprise\nbaseurl=https://www.baculasystems.com/dl/@@customer-id@@/rpms/bin/@@bee-version@@/$RHEL_VER-64\nenabled=1\nautorefresh=1\ntype=rpm-md\ngpgcheck=1\ngpgkey=https://www.baculasystems.com/dl/@@customer-id@@/BaculaSystems-Public-Signature-08-2017.asc\n" | sudo tee -a /etc/yum.repos.d/bacula-enterprise.repo > /dev/nullReplace @@bee-version@@ and @@customer-id@@ with your customer id and the version of Bacula Enterprise you wish to use.
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, consider disabling gpg check
gpgcheck=0
in order to avoid NOKEY warnings.
Refresh your package cache and install the Bacula Enterprise Director using dnf:
sudo dnf check-update sudo dnf install bacula-enterprise-postgresqlDuring installation, you’ll be prompted to configure the database for Bacula with dbconfig-common. Select “Yes,” then set and confirm the database password when asked.
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
Verify Installation
To ensure that your Bacula installation is functioning correctly, use systemd to check their status:
sudo systemctl status bacula-dir.service
sudo systemctl status bacula-sd.service
sudo systemctl status bacula-fd.service
Conclusion
Congratulations! You’ve successfully installed Bacula Enterprise on your system. For further configuration details or troubleshooting, refer to the Bacula Systems Customer Portal or you may contact support.
See also
Previous articles:
Next articles:
Go back to: Install Bacula Enterprise.