View Issue Details

IDProjectCategoryView StatusLast Update
0001243bareos-coredirectorpublic2023-07-05 16:52
Reportermbr Assigned Tobruno-at-bareos  
Status closedResolutionwon't fix 
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.




2023-07-05 16:52

manager   ~0005159

Sorry but this will not be implemented without help of the community like proposing a PR or paid work.
If you're willing to please contact sales (at) bareos (dot) org

Issue History

Date Modified Username Field Change
2020-05-16 13:00 mbr New Issue
2023-07-05 16:52 bruno-at-bareos Assigned To => bruno-at-bareos
2023-07-05 16:52 bruno-at-bareos Status new => closed
2023-07-05 16:52 bruno-at-bareos Resolution open => won't fix
2023-07-05 16:52 bruno-at-bareos Note Added: 0005159