Re: [Bacula-users] Change ClientRunBeforeJob script based on scheduler

2017-05-27 Thread Heitor Faria
Hello, Dan, > This type of approach will give you much more flexibility than modifying the > Bacula code. I really understand and respect your point of view, and I think the two ways of invoking the per level job scripts could exist, providing even more flexibility! >> ClientRunBeforeJob = "\

Re: [Bacula-users] Change ClientRunBeforeJob script based on scheduler

2017-05-27 Thread Dan Langille
> On May 26, 2017, at 4:36 PM, Carlo Filippetto > wrote: > > it works!!! > ClientRunBeforeJob = "\"C:\\Program > Files\\Bacula\\scripts\\test\\bck-sql.bat\" %l" Good! This type of approach will give you much more flexibility than modifying the Bacula code. Small tools. Working together.

Re: [Bacula-users] Change ClientRunBeforeJob script based on scheduler

2017-05-26 Thread Carlo Filippetto
it works!!! ClientRunBeforeJob = "\"C:\\Program Files\\Bacula\\scripts\\test\\bck-sql.bat\" %l" Thank you 2017-05-24 12:35 GMT+02:00 Wanderlei Huttel : > Hello Carlo > > In Bacula communiy is not possible yet (maybe in Enterprise version only) > Probably in the Schedule you have more than on

Re: [Bacula-users] Change ClientRunBeforeJob script based on scheduler

2017-05-26 Thread Dan Langille
> On May 24, 2017, at 6:52 AM, Heitor Faria wrote: > > Hello, Wanderlei, > > You are right. But I still think having a e.g. "ClientRunBeforeJobDiff", is a > benefical new feature, since you might need to use different pre-backup > binaries or scripts. Sometimes is not that practical to change

Re: [Bacula-users] Change ClientRunBeforeJob script based on scheduler

2017-05-24 Thread Heitor Faria
Hello, Wanderlei, You are right. But I still think having a e.g. "ClientRunBeforeJobDiff", is a benefical new feature, since you might need to use different pre-backup binaries or scripts. Sometimes is not that practical to change them.Maybe we can take a look on the code and propose a patch. Re

Re: [Bacula-users] Change ClientRunBeforeJob script based on scheduler

2017-05-24 Thread Wanderlei Huttel
Hello Carlo In Bacula communiy is not possible yet (maybe in Enterprise version only) Probably in the Schedule you have more than one Level for this job. You could adapt you script for receive a parameter like "Level" from Job and in the script select the the Full or Incremental using the value o

[Bacula-users] Change ClientRunBeforeJob script based on scheduler

2017-05-24 Thread Carlo Filippetto
Hi all, I have Bacula 7.2.0 installed on Fedora 23. I need to change the beaviour of a ClientRunBeforeJob based on scheduler, this to create differential or full dump of a DB. how I can do this? I would like to make this feature trought bacula and not with a custom script. Thank you --- Carl