{"id":1846,"date":"2026-11-11T04:41:34","date_gmt":"2026-11-11T04:41:34","guid":{"rendered":"https:\/\/shijuvarghese.com\/?p=1846"},"modified":"2026-11-11T09:17:23","modified_gmt":"2026-11-11T09:17:23","slug":"bacula-backup-job-configuration","status":"publish","type":"post","link":"https:\/\/shijuvarghese.com\/?p=1846","title":{"rendered":"Bacula &#8211; Backup job configuration"},"content":{"rendered":"\n<p>Now that we have learned to configure a Bacula Server, posted <a href=\"https:\/\/shijuvarghese.com\/?p=396\" data-type=\"link\" data-id=\"https:\/\/shijuvarghese.com\/?p=396\">in previous posts<\/a>, let us have a deep look at the sections in the main file.<\/p>\n\n\n\n<p>Once Bacula server is started, and &#8220;bconsole&#8221; 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 <a href=\"https:\/\/shijuvarghese.com\/wp-admin\/update-core.php\" data-type=\"link\" data-id=\"https:\/\/shijuvarghese.com\/wp-admin\/update-core.php\">Testing Back-up<\/a>. If you want to run backups or restore commands, while in the bconsole, the command is &#8220;run&#8221;. This reads the blocks with &#8220;Job&#8221; definitions. The &#8220;run&#8221; command lists names in all &#8220;Job&#8221; definitions.<\/p>\n\n\n\n<p>The property named &#8220;JobDefs&#8221; in the block &#8220;Job&#8221; points to JobDefs block on the &#8220;bacula-dir.conf&#8221;. This block has several parameters defined, as a template, that can be used by any &#8220;Job&#8221;. If a parameter in the JobDefs is also defined in &#8220;Job&#8221;, the one in Job will take priority. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Backup Job<\/h2>\n\n\n\n<p>The parameter &#8220;Type&#8221; defines if this is a Job to &#8220;Backup&#8221; or &#8220;Restore&#8221;. The &#8220;Level&#8221; parameter instructs to do an Incremental or Full backup. The &#8220;Schedule&#8221; parameter triggers automated backup. The &#8220;Storage&#8221; parameter points to the &#8220;Storage&#8221; definition to the referred.<\/p>\n\n\n\n<p>The &#8220;Client&#8221; parameter tells about the client definition that need to be used to take the backup, or the client&#8217;s file that needs to be restored. The client can be local host or a remote one. Check for the &#8220;Client&#8221; block with the client name. The Client definition has the client&#8217;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 &#8220;Password&#8221; 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.<\/p>\n\n\n\n<p>The &#8220;FileSet&#8221; block defines the set of file that needs to be backed-up, ones to be Excluded, the signature and encryption parameters. <\/p>\n\n\n\n<p>The &#8220;Storage&#8221; definition defined the parameters of the Bacula Storage Server to be used. This block lists the server &#8220;Address&#8221;, SD Port (TCP 1903), storage server password, the Device and the Media Type.<\/p>\n\n\n\n<p>The Device parameter in &#8220;Storage&#8221; definition points to a &#8220;Device&#8221; block in <strong>&#8220;bacula-sd.conf&#8221;.<\/strong> This definition block has the &#8220;Archive Device&#8221; parameter that is used to point to the <em>folder <\/em>in the Storage Server&#8217;s file system where the backup will be stored, and the &#8220;Media Type&#8221; which will be &#8220;File&#8221;.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Restore Job<\/h2>\n\n\n\n<p>WIP &#8230;.<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>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 <a class=\"mh-excerpt-more\" href=\"https:\/\/shijuvarghese.com\/?p=1846\" title=\"Bacula &#8211; Backup job configuration\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":1852,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[],"class_list":["post-1846","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-backup"],"_links":{"self":[{"href":"https:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts\/1846","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1846"}],"version-history":[{"count":17,"href":"https:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts\/1846\/revisions"}],"predecessor-version":[{"id":1867,"href":"https:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts\/1846\/revisions\/1867"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/media\/1852"}],"wp:attachment":[{"href":"https:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1846"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1846"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1846"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}