Admin Job

Admin Job is a job which does not backup or move any data, but which can be used to execute scripts through the Run Script resource, and Console or Command directives. The Client and the FileSet are required in an Admin Job configuration, just like other Job directives. However, they do not play a role in an Admin Job. The following definition will launch the script “/opt/bacula/scripts/my-script.pl” located on the Director machine according to the Schedule “AdminSchedule”

Job {
  Type = Admin
  Run Script {
    Runs When = Before
    Runs on Client = No
    Command = "/opt/bacula/scripts/my-script.pl"
  }
  Schedule = AdminSchedule
  ...
}

See also

Go back to:

Go to:

Go back to Jobs.

Go back to Bacula Enterprise Explained

Go back to the Bacula Enterprise Fundamentals chapter.