Re: [Bacula-users] Script fail, continue backup, report error
Thanks, it works. I thought it could be buiild in more a elegant way but it will do. /hans Den 09/13/2012 02:57 PM, Gary R. Schmidt skrev: > 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, > GaryB-) > > > -- > 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@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users -- 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Script fail, continue backup, report error
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, GaryB-) -- 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Script fail, continue backup, report error
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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users