PLEASE UNSCRIBE

 

Van: [email protected] <[email protected]> Namens Frank 
Ueberschar
Verzonden: maandag 6 april 2020 18:46
Aan: [email protected]
Onderwerp: Re: [bareos-users] RunScript not working if within multipe JobDefs

 

Using nested Jobdefs is possible, but not recommended:

First, it is undefinded behaviour how RunScripts get overwritten (or even 
cascaded). 

Second, someone gets easy to configure a recursion and this cannot be solved 
automatically. 

Therefore, this is not a bug. The intended behaviour in some future release 
would be to not allow nested jobdefs. 

 

Am 04.04.20 um 15:15 schrieb Martin Krämer:

Hi All, 

 

I just experienced that if I use multiple (>1) jobdefs in a "subtree" like 
style the "RunScript" directive does not work.
Is this a wanted behavior or should I debug further and possibly open a bug 
report?

What I am experiencing is like the following:
There is job A referencing JobDefA which refrences JobDevB.
As long as JobDefA contains my RunScript everything works as expected.
If I move my RunScript to JobDefB it is no longer executed (no error or 
something - just like bareos cannot "see" it.

 

Thanks for any feedback in advance.

Script working:

Job {

   Name = 'JobA'

   ...

   JobDefs = 'JobDefA'

}

 

JobDefs {

  Name = 'JobDefA'

  JobDefs = 'JobDefB'

  ...

  RunScript {

     RunsWhen = Before

     RunsOnClient = Yes

     Command = "MyCommand"

  }

}

 

JobDefs {

  Name = 'JobDefB'

  ...

}

 

 Script not working:

 Job {

   Name = 'JobA'

   ...

   JobDefs = 'JobDefA'

}

 

JobDefs {

  Name = 'JobDefA'

  JobDefs = 'JobDefB'

  ...

}

 

JobDefs {

  Name = 'JobDefB'

  ...

  RunScript {

     RunsWhen = Before

     RunsOnClient = Yes

     Command = "MyCommand"

  } 

}

-- 
You received this message because you are subscribed to the Google Groups 
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected] 
<mailto:[email protected]> .
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/cf8ef18d-272f-472d-b6e5-2f95410a514d%40googlegroups.com
 
<https://groups.google.com/d/msgid/bareos-users/cf8ef18d-272f-472d-b6e5-2f95410a514d%40googlegroups.com?utm_medium=email&utm_source=footer>
 .

-- 
Mit freundlichen Grüßen
 
 Frank Ueberschar                          [email protected] 
<mailto:[email protected]> 
 Bareos GmbH & Co. KG                      Phone: +49 221 63 06 93-88
 http://www.bareos.com                     Fax:   +49 221 63 06 93-10
 
 Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
 Geschäftsführer: S. Dühr, M. Außendorf, J. Steffens, P. Storz

-- 
You received this message because you are subscribed to the Google Groups 
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected] 
<mailto:[email protected]> .
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/4f7d34a1-b9e0-442e-bb85-64791ebe5470%40bareos.com
 
<https://groups.google.com/d/msgid/bareos-users/4f7d34a1-b9e0-442e-bb85-64791ebe5470%40bareos.com?utm_medium=email&utm_source=footer>
 .

-- 
You received this message because you are subscribed to the Google Groups 
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/003501d60cc0%2457ec0cb0%2407c42610%24%40gmail.com.

Reply via email to