Bacula – Backup job configuration

Now that we have learned to configure a Bacula Server, posted in previous posts, let us have a deep look at the sections in the main file.

Once Bacula server is started, and “bconsole” command is typed, you are getting into the Director, with configuration file bacula-dir. It may be good to get a bit familiar with bconsole by visiting my post Testing Back-up. If you want to run backups or restore commands, while in the bconsole, the command is “run”. This reads the blocks with “Job” definitions. The “run” command lists names in all “Job” definitions.

The property named “JobDefs” in the block “Job” points to JobDefs block on the “bacula-dir.conf”. This block has several parameters defined, as a template, that can be used by any “Job”. If a parameter in the JobDefs is also defined in “Job”, the one in Job will take priority.

Backup Job

The parameter “Type” defines if this is a Job to “Backup” or “Restore”. The “Level” parameter instructs to do an Incremental or Full backup. The “Schedule” parameter triggers automated backup. The “Storage” parameter points to the “Storage” definition to the referred.

The “Client” parameter tells about the client definition that need to be used to take the backup, or the client’s file that needs to be restored. The client can be local host or a remote one. Check for the “Client” block with the client name. The Client definition has the client’s IP details, the TCP port on which the Bacula client application is listening on the client node, the FDPort port (TCP port) which is typically 9102. The “Password” parameter has the password configured in the client node. It also contains the Retention parameters and the Catalog which is the reference in the the database storing Bacula backup information.

The “FileSet” block defines the set of file that needs to be backed-up, ones to be Excluded, the signature and encryption parameters.

The “Storage” definition defined the parameters of the Bacula Storage Server to be used. This block lists the server “Address”, SD Port (TCP 1903), storage server password, the Device and the Media Type.

The Device parameter in “Storage” definition points to a “Device” block in “bacula-sd.conf”. This definition block has the “Archive Device” parameter that is used to point to the folder in the Storage Server’s file system where the backup will be stored, and the “Media Type” which will be “File”.

Restore Job

WIP ….