Bacula-users

Re: [Bacula-users] Script fail, continue backup, report error

2012-09-13 09:00:57
Subject: Re: [Bacula-users] Script fail, continue backup, report error
From: "Gary R. Schmidt" <grs AT mcleod-schmidt.id DOT au>
To: bacula-users AT lists.sourceforge DOT net
Date: Thu, 13 Sep 2012 22:57:54 +1000
On 13/09/2012 10:01 PM, Hans Schou wrote:
> Hi
>
> Despite Bacula is quite easy to operate I got a small problem.
>
> On a server I run a script before the backup is started (mysqldump).
> Sometimes it happens that the script fails on a part of the job. The
> situation is then that data is not complete but that is better than
> nothing. I want the backup to continue and do the actual backup. When
> the job is finish I want to have a failure report by email if the script
> failed.
>
> My beforeScript looks like this:
>
>     RunScript {
>         RunsWhen = Before
>         FailJobOnError = No
>         RunsOnFailure = yes
>         RunsOnClient = Yes
>         Command = "/etc/backup/dump_all_db"
>     }
>
> The "FailJobOnError" makes the backup continue despite the error, but
> the error report says "OK".
>
> How can I get failure report and also a backup of the data which is OK?
>
Make the "/etc/backup/dump_all_db" script do the reporting?

     Cheers,
         Gary    B-)


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>