Scripsit T. Horsnell die 18.10.2008 16:30: >> My only question is if the job fails for some reason doesn't that >> leave it disabled because the Run After script does not get executed? > > Yes, this is a risk. I dont know whether the RunAfter script gets run if > the actual backup itself fails - it hasnt happened yet, but its > something to be aware of.
RunAfterJob doesn't get run if the job fails. If you want to run the
same script regardless of your job's success you can use
RunScript {
RunsWhen = After
RunsOnFailure = yes
Command = "..."
}
Alternatively, you could add a separate RunAfterFailedJob directive
to run a different script in the failure case, and put the enable
command in both of the scripts.
HTH
T.
--
Tilman Schmidt
Phoenix Software GmbH
Bonn, Germany
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________ Bacula-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bacula-users
