Note: The script was updated on 5/17/2013 due to a typo.
We recently had an issue where we lost 3 drives in a RAID 5 array, causing the entire system to be lost. Unfortunately, some data was lost due to the hosting service’s backups not being complete.
Since we have two sites, we needed to set up a backup server in each location. The main intention of the new systems are to do local backups of all the virtual machines which we’ve set up in the past year. Unfortunately, a production VM was on the server which was lost, and we lost some data permanently.
Our environment is a combination of RHEL5, RHEL6, and the equivilant versions of CentOS. We have a local repository set up, so in order to be able to built RPMs for each environment, I wrote an installation script which builds RPMs for each environment. You have to run the script in each environment in order to build the binaries properly.
The script builds the following RPMs for client installs, they should all be installed:
bacula-client.x86_64 – binaries
bacula-client-conf.noarch – Initial config file
bacula-client-redhat.noarch – Startup scripts
For server installs, it builds the following:
bacula-server.x86_64 – binaries
bacula-server-conf.noarch – Initial config file
bacula-server-redhat.noarch – Startup scripts
It has the following limitations:
- PostreSql is forced, there is no option to install MySql
- It assumes either RedHat or CentOS. Any other RHEL-based system will require modifications, search for “centos” in the code
- The database installation code assumes the database is being built and used on the current system
This script was written and tested on both Redhat and CentOS systems.
installbacula.tar.gz (9.2 KiB, 472 hits)