Bacula & WeBacula Installation Script

By jbayer - Last updated: Thursday, April 25, 2013 - Save & Share - 2 Comments

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.

As a result of this, we decided to implement our own backup systems as a secondary backup.  We decided to use Bacula to do the backups, and WeBacula for a user interface.

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

Since I use the Checkinstall program (be sure to read this about a problem on 64 bit systems), I set it up to build these three RPMs to make it easier to update the binaries.

It has the following limitations:

  1. PostreSql is forced, there is no option to install MySql
  2. It assumes either RedHat or CentOS. Any other RHEL-based system will require modifications, search for “centos” in the code
  3. 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, 492 hits)

Posted in Backup, Bash, Open Source • • Top Of Page
1,859 views

2 Responses to “Bacula & WeBacula Installation Script”

Comment from aris ahito
Time July 29, 2013 at 1:26 am

Error getting repository data for “epel”, repository not found

Error getting repository data for “epel”, repository not found
fail: Package install – Development tools

Comment from jbayer
Time August 8, 2013 at 10:52 am

The version of epel has changed. try downloading the latest version of my script.

Write a comment

asd