View Issue Details

IDProjectCategoryView StatusLast Update
0001454bareos-coredirectorpublic2023-09-11 17:10
Reportermdc Assigned Tobruno-at-bareos  
PrioritynormalSeverityfeatureReproducibilityalways
Status closedResolutionwon't fix 
Platformx86_64OSCentOSOS Versionstream 8
Product Version21.1.2 
Summary0001454: Add config option to let run scripts only on an specific job level
DescriptionUntil now, an script can only runs before or after an job. But for some jobs like backup an PostgreSQL database using your add on an third situation will occurs.
An script run before an full backup job is needed, which removes the old wal archive files.
TagsNo tags attached.

Activities

bruno-at-bareos

bruno-at-bareos

2022-05-03 10:42

manager   ~0004586

Maybe you want to use the Characters substitution flag and use that to determine which kind of job you are running
%l = Job Level

https://docs.bareos.org/bareos-21/Configuration/Director.html?highlight=run%20script#config-Dir_Job_RunScript
mdc

mdc

2022-05-04 07:12

reporter   ~0004588

This have I done as an workaround, but this needs an wrapper script to call the "real" script/application.
bruno-at-bareos

bruno-at-bareos

2022-05-05 14:00

manager   ~0004596

Maybe you are encline to propose a PR for that option ?
mdc

mdc

2022-05-05 14:22

reporter   ~0004598

I think it will needs deeper internal changes and I don't have deeper code knowledge.
So my idea is, because for me an workaround exists, that the ticket can be put with an low priority on the "which list".
bruno-at-bareos

bruno-at-bareos

2023-09-11 17:10

manager   ~0005404

Hello, this will not get implemented without a community PR or payed work (if you are interested in, please contact our sales department for a quotes https://bareos.com/contact

Issue History

Date Modified Username Field Change
2022-05-03 07:02 mdc New Issue
2022-05-03 10:42 bruno-at-bareos Note Added: 0004586
2022-05-04 07:12 mdc Note Added: 0004588
2022-05-05 14:00 bruno-at-bareos Note Added: 0004596
2022-05-05 14:22 mdc Note Added: 0004598
2023-09-11 17:10 bruno-at-bareos Assigned To => bruno-at-bareos
2023-09-11 17:10 bruno-at-bareos Status new => closed
2023-09-11 17:10 bruno-at-bareos Resolution open => won't fix
2023-09-11 17:10 bruno-at-bareos Note Added: 0005404