Bacula-users

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

2012-09-13 08:41:34
Subject: [Bacula-users] Script fail, continue backup, report error
From: Hans Schou <hans AT moc DOT net>
To: bacula-users AT lists.sourceforge DOT net
Date: Thu, 13 Sep 2012 14:01:16 +0200
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?

-- 
Venlig hilsen
Hans Schou
tel:46923438


------------------------------------------------------------------------------
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>