February 20, 2019

Bacula: Robust, Reliable Enterprise Backup and Recovery, part 1 - page 2

It comes by night and sucks the vital essence from your computers

  • November 18, 2008
  • By Deann Corum

Next, download the bacula source (at least bacula itself and the docs), and untar the archives in the /bacula directory you created earlier. Change to that directory and run


using the options described in bacula's documentation. Start with some basics. For instance a pretty generic Red Hat installation might get you started:

CFLAGS="-g -Wall" ./configure   

Be sure you include the directory where you installed mysql earlier. If you need to later change any of these options, start over by using ./make distclean and re-running ./configure with your desired options. Once you've done that, run make and make install.

Customize the Bacula configuration files for your needs according to the Bacula manual's instructions. The configuration of these files will largely depend on your backup media/tape devices, target file locations, and your desired backup schedule. Start with some defaults, then customize these after you get Bacula up and running. The file you will eventually spend the most time configuring is bacula-dir.conf, since this one defines and controls jobs, schedules and pools.

After Bacula is ready to run, a useful tip for testing your configuration files is to run start the related service with the -t option:

./bacula-dir -t /etc/bacula/bacula-dir.conf

This will either terminate with no comment if the configuration file is OK, or will print an error message indicating where the error is in your configuration file.

An occasionally troublesome aspect of these configuration files is that the randomly generated passwords must agree between them. If they are changed, and do not agree, the director service will not start. Another problematic configuration issue can be configuring tape devices with Bacula. Bacula lists support most modern tape devices. I strongly encourage you to test your tape drive before using it with Bacula.

Most Popular LinuxPlanet Stories