Bacula-users

Re: [Bacula-users] Problem with huge backup - possible bug

2008-10-20 06:11:26
Subject: Re: [Bacula-users] Problem with huge backup - possible bug
From: Tilman Schmidt <t.schmidt AT phoenixsoftware DOT de>
To: "T. Horsnell" <tsh AT mrc-lmb.cam.ac DOT uk>
Date: Mon, 20 Oct 2008 12:09:02 +0200
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

Attachment: 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
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users