View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001243 | bareos-core | director | public | 2020-05-16 13:00 | 2023-07-05 16:52 |
Reporter | mbr | Assigned To | bruno-at-bareos | ||
Priority | normal | Severity | minor | Reproducibility | N/A |
Status | closed | Resolution | won't fix | ||
Summary | 0001243: Feature Request: Client-Variables in job defs and file sets | ||||
Description | It would be great having variables in job defs and file sets. Example: 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/SQLDump.sh $client_pass" } .... } FileSet { ... Include { ... File = "\\|/etc/bareos/Scripts/GetDBs.sh $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. | ||||
Tags | No tags attached. | ||||
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 |
|
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 |