Virtual Server: How to Install and Configure Backups (Bacula) on a RHEL Server

SUMMARY

The Bacula Enterprise Edition (BEE) backup service is the optional daily backup service listed in the ITS VMware Hosted Solutions page. Backups are file level only.

If you are a virtual server customer and have purchased the daily backup service, a BEE client will need to be configured on your server to communicate with the backup server. This article describes installing and configuring the BEE client on a Red Hat Enterprise Linux (RHEL) virtual server.

PREREQUISITES

PROCEDURE

Do the following to install a BEE client on your RHEL virtual server:

  1. Contact ITS CS at itscs@hawaii.edu asking that the latest version of the BEE client .rpm packages be file dropped to you (via the UH Filedrop service). Once you have these files, upload them to your virtual server's /root directory.
  1. Log into your virtual server and switch user to the root user.
     
  2. Install the BEE client software:

cd /root
yum install -y ./bacula-enterprise-*.rpm

  1. Modify the /opt/bacula/etc/bacula-fd.conf file (installed when you install the BEE client) as outlined in the following example. In this example, "bac10" is used as the hostname, but for your server, it should be the short hostname of your virtual server.

(a) Change this:

Director {

  Name = bac10-dir

  Password = "< random_password_1 >"

}

To this (change the Name, and make note of the random password generated for the "Password" field--you'll need to send it to ITS CS via UH Filedrop later):

Director {

  Name = bacula-dir

  Password = "< random_password_1 >"

}

 

(b) Change this:

Director {

  Name = bac10-mon

  Password = "a long random password"

  Monitor = yes

To this (change the Name and leave the long random password generated by the installer, then comment out all lines by prefixing them with a "#"):

#Director {

#  Name = bacula-dir-mon

#  Password = "a long random password"

#  Monitor = yes

#}

  

(c) Change this:

FileDaemon {                          # this is me

  Name = bac10-fd

  FDport = 9102                  # where we listen for the director

  WorkingDirectory = /opt/bacula/working

  Pid Directory = /opt/bacula/working

  Maximum Concurrent Jobs = 20

  Plugin Directory = /opt/bacula/plugins

} 

To this (remove "-fd" from shortname of the host.  Change Maximum Concurrent Jobs to 20):

FileDaemon {                          # this is me

  Name = bac10

  FDport = 9102                  # where we listen for the director

  WorkingDirectory = /opt/bacula/working

  Pid Directory = /opt/bacula/working

  Maximum Concurrent Jobs = 20

  Plugin Directory = /opt/bacula/plugins

}

 

(d) Change this:

Messages {

  Name = Standard

  director = bac10-dir = all, !skipped, !restored, !saved

}

To this (change director name):

Messages {

  Name = Standard

  director = bacula-dir = all, !skipped, !restored, !saved

}

  1. Enable automatic start of the BEE client upon server boot:

RHEL 6: # chkconfig bacula-fd on

RHEL 7: # systemctl enable bacula-fd

  1. Restart bacula-fd service:

RHEL 6: # service bacula-fd start

RHEL 7: # systemctl start bacula-fd

  1. If you are running the iptables software firewall on your virtual server, add a rule to the iptables software firewall to allow incoming TCP connections over port 9102.
  1. If TCP Wrappers is configured in the OS, add a rule to allow incoming connections from the Bacula Director Server dr-dir02.pvt.hawaii.edu. E.g., modify the /etc/hosts.allow file to add the line "ALL: 172.24.2.80 dr-dir02.pvt.hawaii.edu").
  1. (Optional) Delete the bacula-enterprise-* .rpm files from /root.
     
  2. Notify IT CS that you have completed installing the BEE client on your virtual server. Please let us know the name of your virtual server, which directories you want backed up, and an estimate of you much storage space you expect the backup to require. Do not include the Bacula password in this email. If it is emailed in clear text, you will be required to change the password. A staff member from Contract Services will respond to you and ask you to send the password you made note of in step 4a above via the UH Filedrop service.

RELATED ARTICLES

 

Please rate the quality of this answer: Poor Fair Okay Good Excellent
Not the answer you were looking for? Try different keyword combinations and if you still can’t find your answer, please contact us.
Article ID: 1732
Created: Fri, 31 Mar 2017 10:36am
Modified: Tue, 03 Oct 2017 5:24pm