When the database has been initialized, install Bacula software using the command:
# yum install bacula-enterprise-postgresql
Start the PostgreSQL database.
# systemctl start postgresql.service
Next step is the creation of the database granting the correct ownership.
# su - postgres
> /opt/bacula/scripts/create_postgresql_database
> /opt/bacula/scripts/make_postgresql_tables
> /opt/bacula/scripts/grant_postgresql_privileges
> exit
Launch the Bacula services.
# systemctl start bacula-fd.service
# systemctl start bacula-sd.service
# systemctl start bacula-dir.service
Open the required TCP ports 9101, 9102, and 9103 in the firewall with the following commands:
# firewall-cmd --permanent --add-port=9101/tcp
# firewall-cmd --permanent --add-port=9102/tcp
# firewall-cmd --permanent --add-port=9103/tcp
Since SELinux may cause some issues, check if SELinux is enabled in your system. Edit the /etc/selinux/config file to disable it if needed.
# sestatus
# vi /etc/selinux/config
To disable SELinux, change the SELINUX entry in the /etc/selinux/config file as follows:
Save and reboot your system. Once rebooted, check the SElinux status once again. This time the feature has been disabled successfully.
# sestatus
Run the following test to check if the system works as expected.
# sudo -u bacula /opt/bacula/bin/bconsole
Enter the following commands:
* run job=BackupCatalog
* messages
* status dir
* quit
If no errors are reported, the system is working properly.
BWeb is the web interface used to manage Bacula Enterprise.
To install the web interface using yum, edit the /etc/yum.repos.d/bacula-enterprise.repo file and add the following entry since it is required another URL:
# vi /etc/yum.repos.d/bacula-enterprise.repo
2 4 6 | name=Red Hat Enterprise-Bacula Systems vSphere baseurl=https://<em>URL_provided_by_Bacula_Systems</em>/rpms/vsphere/10.0.5/rhel7-64/ protect=0 |
Install the required packages needed to ensure that the Bacula Enterprise Edition version is compatible with the vSphere Plugin.
# yum install bacula-enterprise-vsphere*
To integrate VMware with BWeb, you need to install the VMware Perl SDK package. Download the .GZ package in your system and extract the files.
# tar -xzvf VMware-vSphere-Perl-SDK-6.7-0-8156551.x86_64.tar.gz
Once the files has been extracted, enter the created directory and run the following commands to install the VMware Perl SDK:
# cd vmware-vsphere-cli-distrib
# /.vmware-install.pl
Accept the EULA by typing yes when prompted then press Enter.
If missing dependencies required by viperl are detected, install all required packages.
When all dependencies have been fixed, the VMware Perl SDK installs successfully.
Now run the following command to retrieve the vCenter thumbprint needed in the plugin configuration:
# /opt/bacula/bin/vsphere-ctl thumbprint <IP_vCenter>
Edit the /opt/bacula/etc/vsphere_global.conf file end enter the details of your vCenter or ESXi host. As thumbprint, enter the value obtained from previous step.
# vi /opt/bacula/etc/vsphere_global.conf
Test the vSphere plugin by running this command. You should see the list of virtual machines running in the vCenter.
# /opt/bacula/bin/vsphere-ctl update
Now to enable the VMware Integration support, the viperl libraries must be installed in the system. From the previously extracted directory vmware-vsphere-cli-distrib, copy the files included in the lib/VMware/share/VMware folder to a perl include path.
# cp vmware-vsphere-cli-distrib/lib/VMware/share/VMware/* /usr/local/share/perl5/
Before protecting your vSphere environment, you need to configure your backup infrastructure. Access the web console's dashboard go to Configuration > Configure Bacula to access the configuration area and start configuring the product. From this section you can define your backup environment: backup jobs, backup repositories, backup policies, etc.
Bacula Enterprise Backup provides so many features and capabilities to protect and secure IT infrastructures that even the most demanding administrator can find the product complete.
Bacula Enterprise Backup is available to download as 30-day trial with documentation and example user test scenarios.