Package Installation
CommunityInstall Database Engine
If PostgreSQL is not already installed, please run this command to install it:
yum install postgresql-server
Initialize and set the PostgreSQL database to auto-start at boot:
postgresql-setup initdb
systemctl enable postgresql.service
Install Bacula Community Software
Run this command to install the packages:
yum install bacula-postgresql
Final Configuration
Start PostgreSQL database
systemctl start postgresql.service
Please 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
Launch the services:
systemctl start bacula-fd.service
systemctl start bacula-sd.service
systemctl start bacula-dir.service
Please use systemctl to start, stop or restart your Bacula daemons. By default, PostgreSQL uses the IDENT method and will thus recognize and accept the local user “bacula” without further credentials. If you are using tape libraries, you might want to add the bacula user to the “tape” group:
gpasswd-a bacula tape
Please now go to the Security and Permissions Considerations chapter and continue the installation from there. If you run into trouble or have an error message while installing or configuring your Bacula infrastructure, please contact Support.
Install Aligned Plugin
If you want to use the Aligned Plugin for deduplication on systems such as ZFS, you must explicitly load that plugin with something like:
yum install bacula-aligned
Keep in mind that to actually use the plugin, you must configure it and restart the Storage Daemon.
Go back to: CentOS/RedHat 7: Installation with yum.