View Issue Details

IDProjectCategoryView StatusLast Update
0001243bareos-coredirectorpublic2020-05-16 13:00
Reportermbr Assigned To 
Status newResolutionopen 
Summary0001243: Feature Request: Client-Variables in job defs and file sets
DescriptionIt would be great having variables in job defs and file sets.

In a JobDef you define a command to dump a database. The password is client specific and is passed as argument to the script. Same in file set - here you need a password for the script getting the file list.

It would look like this:

Client {
  Name = foo-bar
  Description = "Client resource Foo Bar"
  Password = "...." # password for FileDaemon
  Vars {
    client_pass = "Password"

JobDef {
 RunScript {
    Runs When = Before
    Runs On Client = Yes
    Fail Job On Error = Yes
    Command = "/etc/bareos/Scripts/ $client_pass"

FileSet {
  Include {
    File = "\\|/etc/bareos/Scripts/ $client_pass"

Additional to free format variables would it be great beeing able to pass job parameters like job name, job def name, job level and client name, client address to run scripts.
TagsNo tags attached.
bareos-master: impact
bareos-master: action
bareos-19.2: impact
bareos-19.2: action
bareos-18.2: impact
bareos-18.2: action
bareos-17.2: impact
bareos-17.2: action
bareos-16.2: impact
bareos-16.2: action
bareos-15.2: impact
bareos-15.2: action
bareos-14.2: impact
bareos-14.2: action
bareos-13.2: impact
bareos-13.2: action
bareos-12.4: impact
bareos-12.4: action


There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2020-05-16 13:00 mbr New Issue