Re: [Bacula-users] E-mails with the subject "Backup OK" when warnings have occurred.
Hi tomasz, on 01.02.2008 12:56 you wrote: > bacula do not track or care about scripts running as before_backup > thingy if they are successful or not. > > bacula care about files to backup > > if 'external' script for some reason failed i does not mean it is > important for bacula. Yes it does. Just a couple of days ago one of my Bacula backup jobs failed because the ClientRunBeforeScript contained a mistake. Bacula started the script, noticed that it didn't run successfully, and consequently didn't even try to back up any files from that client. So, obviously, Bacula *does* track and care if "Run Before" scripts are successful, and it *is* important to Bacula if such an external script failed for whatever reason, to the point that Bacula actually refuses to back up any files from the affected client. Note1: This is as it should be. If the "Run Before" script is of such a nature that the backup can proceed even if the script failed, then the script should just refrain from signalling its failure to Bacula. (It's easy: in shell terms, do "exit 0" instead of "exit $?".) Note2: I am aware that this wasn't Justin's problem. I just wanted to clear up the misconception. HTH T. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] E-mails with the subject "Backup OK" when warnings have occurred.
[EMAIL PROTECTED] wrote: > Hi, > As a new user, I'll start by thanking Kern (see you at the UKUUG) and > everyone who's contributed to Bacula! > > When the backup status is "Backup OK -- with warnings" the subject of > the report e-mail is always "Backup OK". > My co-workers (and sometimes I) often miss small problems that cause the > warnings because it's assumed from the subject of the e-mail that the > backup was completely successful - especially with a high volume of > e-mailed reports. > > My natural assumption is that the e-mail subject would be the same as > the backup status. > Is this not the case by design? As far as I know, there's no way to include warnings in the subject line, no. Doing so sounds pretty reasonable to me, so I'd suggest that you file a feature request to ask if the current behavior can be improved. You can find directions on how to make a feature request here: http://bacula.org/en/?page=feature-request -- Frank Sweetser fs at wpi.edu | For every problem, there is a solution that WPI Senior Network Engineer | is simple, elegant, and wrong. - HL Mencken GPG fingerprint = 6174 1257 129E 0D21 D8D4 E8A3 8E39 29E3 E2E8 8CEC - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] E-mails with the subject "Backup OK" when warnings have occurred.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [EMAIL PROTECTED] wrote: > tomasz dereszynski wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> [EMAIL PROTECTED] wrote: >> >>> tomasz dereszynski wrote: >>> depends subject is the same as the backup status! as bacula backed up with no errors everything it could! it couldnt backup some stuff cos for example it do not exist then it is not error only warning. cos the 'small problems you miss' are not problems in terms of how useful is what you backed up. i will more say as bacula is bit 'stupid proof' and i will back up 'stuff' even if you done typo or so. if your fileset contain not existing directory would you like to have backup anyway or not? it means as you are warned about some problems but they are not critical. for me it has a lot of sense. and i think as it is good way of doing it. is it what you asked for? >>> Yes and no ;-) >>> >>> The if the status of the backup was "with warnings" then I would expect >>> this to be reflected in the subject of the e-mail. >>> >>> One real-life example... >>> >>> We have a job to backup up the Bacula database. The >>> 'make_catalog_backup' script is executed at the start and >>> 'delete_catalog_backup' at the end, and the job is defined to back up >>> only *one* file - the dumped Bacula SQL database text file. >>> >>> However at some point the dumped database became to large for the >>> file-system and the 'make_catalog_backup' and 'delete_catalog_backup' >>> script were modified to dump the database to a different file-system. >>> >>> For some time this job had failed completely because it could no longer >>> find the file to back up! Our Bacula database backups were failing and >>> we didn't know! >>> >>> The subject of the job e-mail told us "Backup OK" which was taken to >>> mean just that - that the backup was OK. >>> However the actual backup status in the contents of the e-mail was "with >>> warnings". If the subject reflected the same state as the log then >>> someone would have realised the first night! >>> >>> I find the fact that the subject differs from the actual status illogical. >>> >> bacula do not track or care about scripts running as before_backup >> thingy if they are successful or not. >> >> bacula care about files to backup >> >> if 'external' script for some reason failed i does not mean it is >> important for bacula. >> >> i do understand where you coming from but i still think as STATUS OK is >> valid. >> >> and it this terms i will say as job didnt fail there was just nothing to >> backup cos 'make' script was broken. or it was still the same dump file. >> >> bacula done its job. >> >> its called human factor isnt it? > Hi again Thomasz, > You misunderstand again :-p The script wasn't broken. > The job definition became incorrect. The job is configured to backup > only one file - the dumped Bacula SQL database text file. However > because this file changed location the job failed for some time. Because > the e-mail subject didn't report "with warnings" no-one noticed for some > time! > As you say, Bacula cares about files to back up. If any files cause > warnings then why wouldn't Bacula show this in the subject with "Backup > OK -- with warnings" when the status in the log is also "Backup OK -- > with warnings"? > The user can still choose to ignore the e-mail the same whether the > subject is "Backup OK" or "Backup OK -- with warnings". > > I think my real-life example shows how important is it to reflect there > were warnings in the subject line, and the confusion caused when the two > statuses differ! > > Justin > Justin, i have to admit as you are right. i misunderstood from beginning. cos now i understand as only one thing you request it info in subject 'with warnings'. i do apologise for misunderstanding. it make kind of sense ;-) thats why checking logs at time to time make sense too. ;-) all the best - -- bEsT rEgArDs| "Confidence is what you have before you tomasz dereszynski | understand the problem." -- Woody Allen | Spes confisa Deo| "In theory, theory and practice are much numquam confusa recedit | the same. In practice they are very | different." -- Albert Einstein -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHow9a5GTLLfVywbsRAvKoAJ9M060mnCGm+hd6n/jVaQQsTqGrjACgpaw7 DcTNBTuOfmuFVJBFI43n3mI= =czME -END PGP SIGNATURE- - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing li
Re: [Bacula-users] E-mails with the subject "Backup OK" when warnings have occurred.
> On Fri, 01 Feb 2008 10:20:56 +, justin said: > > Hi, > As a new user, I'll start by thanking Kern (see you at the UKUUG) and > everyone who's contributed to Bacula! > > When the backup status is "Backup OK -- with warnings" the subject of > the report e-mail is always "Backup OK". > My co-workers (and sometimes I) often miss small problems that cause the > warnings because it's assumed from the subject of the e-mail that the > backup was completely successful - especially with a high volume of > e-mailed reports. > > My natural assumption is that the e-mail subject would be the same as > the backup status. > Is this not the case by design? The state doesn't actually include the "with warnings" part -- it is only printed like that. You could use a customized mailcommand or something like procmail to alter the emails before they are seen by a human. __Martin - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] E-mails with the subject "Backup OK" when warnings have occurred.
tomasz dereszynski wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > [EMAIL PROTECTED] wrote: > >> tomasz dereszynski wrote: >> >>> depends >>> >>> subject is the same as the backup status! as bacula backed up with no >>> errors everything it could! it couldnt backup some stuff cos for example >>> it do not exist then it is not error only warning. >>> >>> cos the 'small problems you miss' are not problems in terms of how >>> useful is what you backed up. >>> i will more say as bacula is bit 'stupid proof' and i will back up >>> 'stuff' even if you done typo or so. >>> >>> if your fileset contain not existing directory would you like to have >>> backup anyway or not? >>> >>> it means as you are warned about some problems but they are not critical. >>> for me it has a lot of sense. and i think as it is good way of doing it. >>> >>> is it what you asked for? >>> >> Yes and no ;-) >> >> The if the status of the backup was "with warnings" then I would expect >> this to be reflected in the subject of the e-mail. >> >> One real-life example... >> >> We have a job to backup up the Bacula database. The >> 'make_catalog_backup' script is executed at the start and >> 'delete_catalog_backup' at the end, and the job is defined to back up >> only *one* file - the dumped Bacula SQL database text file. >> >> However at some point the dumped database became to large for the >> file-system and the 'make_catalog_backup' and 'delete_catalog_backup' >> script were modified to dump the database to a different file-system. >> >> For some time this job had failed completely because it could no longer >> find the file to back up! Our Bacula database backups were failing and >> we didn't know! >> >> The subject of the job e-mail told us "Backup OK" which was taken to >> mean just that - that the backup was OK. >> However the actual backup status in the contents of the e-mail was "with >> warnings". If the subject reflected the same state as the log then >> someone would have realised the first night! >> >> I find the fact that the subject differs from the actual status illogical. >> > > bacula do not track or care about scripts running as before_backup > thingy if they are successful or not. > > bacula care about files to backup > > if 'external' script for some reason failed i does not mean it is > important for bacula. > > i do understand where you coming from but i still think as STATUS OK is > valid. > > and it this terms i will say as job didnt fail there was just nothing to > backup cos 'make' script was broken. or it was still the same dump file. > > bacula done its job. > > its called human factor isnt it? Hi again Thomasz, You misunderstand again :-p The script wasn't broken. The job definition became incorrect. The job is configured to backup only one file - the dumped Bacula SQL database text file. However because this file changed location the job failed for some time. Because the e-mail subject didn't report "with warnings" no-one noticed for some time! As you say, Bacula cares about files to back up. If any files cause warnings then why wouldn't Bacula show this in the subject with "Backup OK -- with warnings" when the status in the log is also "Backup OK -- with warnings"? The user can still choose to ignore the e-mail the same whether the subject is "Backup OK" or "Backup OK -- with warnings". I think my real-life example shows how important is it to reflect there were warnings in the subject line, and the confusion caused when the two statuses differ! Justin - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] E-mails with the subject "Backup OK" when warnings have occurred.
> bacula do not track or care about scripts running as before_backup > thingy if they are successful or not. > > bacula care about files to backup > > if 'external' script for some reason failed i does not mean it is > important for bacula. > > i do understand where you coming from but i still think as STATUS OK is > valid. > > and it this terms i will say as job didnt fail there was just nothing to > backup cos 'make' script was broken. or it was still the same dump file. > > bacula done its job. > > its called human factor isnt it? it's not a matter of external script failure handling : it's a matter of whether bacula should reflect job status (ok with warnings) in the subject of the mail... If you want to backup a directory, when this directory does no longer exist, bacula issues a warning in the *body* of the message, but nothing in the subject warns you of this "error" As the OP, I think it would be great to have this kind of information in the subject, or maybe there's another way to be alerted when this happens ? have a nice day ! -- seb - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] E-mails with the subject "Backup OK" when warnings have occurred.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [EMAIL PROTECTED] wrote: > tomasz dereszynski wrote: >> depends >> >> subject is the same as the backup status! as bacula backed up with no >> errors everything it could! it couldnt backup some stuff cos for example >> it do not exist then it is not error only warning. >> >> cos the 'small problems you miss' are not problems in terms of how >> useful is what you backed up. >> i will more say as bacula is bit 'stupid proof' and i will back up >> 'stuff' even if you done typo or so. >> >> if your fileset contain not existing directory would you like to have >> backup anyway or not? >> >> it means as you are warned about some problems but they are not critical. >> for me it has a lot of sense. and i think as it is good way of doing it. >> >> is it what you asked for? > Yes and no ;-) > > The if the status of the backup was "with warnings" then I would expect > this to be reflected in the subject of the e-mail. > > One real-life example... > > We have a job to backup up the Bacula database. The > 'make_catalog_backup' script is executed at the start and > 'delete_catalog_backup' at the end, and the job is defined to back up > only *one* file - the dumped Bacula SQL database text file. > > However at some point the dumped database became to large for the > file-system and the 'make_catalog_backup' and 'delete_catalog_backup' > script were modified to dump the database to a different file-system. > > For some time this job had failed completely because it could no longer > find the file to back up! Our Bacula database backups were failing and > we didn't know! > > The subject of the job e-mail told us "Backup OK" which was taken to > mean just that - that the backup was OK. > However the actual backup status in the contents of the e-mail was "with > warnings". If the subject reflected the same state as the log then > someone would have realised the first night! > > I find the fact that the subject differs from the actual status illogical. bacula do not track or care about scripts running as before_backup thingy if they are successful or not. bacula care about files to backup if 'external' script for some reason failed i does not mean it is important for bacula. i do understand where you coming from but i still think as STATUS OK is valid. and it this terms i will say as job didnt fail there was just nothing to backup cos 'make' script was broken. or it was still the same dump file. bacula done its job. its called human factor isnt it? - -- bEsT rEgArDs| "Confidence is what you have before you tomasz dereszynski | understand the problem." -- Woody Allen | Spes confisa Deo| "In theory, theory and practice are much numquam confusa recedit | the same. In practice they are very | different." -- Albert Einstein -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHowkF5GTLLfVywbsRAgDJAJ0RxrKu2sGSI6xoO2ie6ozUcL0htACdFLja CZSyrVY+GQnYYQ62PrJcWEQ= =5Kpt -END PGP SIGNATURE- - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] E-mails with the subject "Backup OK" when warnings have occurred.
tomasz dereszynski wrote: > depends > > subject is the same as the backup status! as bacula backed up with no > errors everything it could! it couldnt backup some stuff cos for example > it do not exist then it is not error only warning. > > cos the 'small problems you miss' are not problems in terms of how > useful is what you backed up. > i will more say as bacula is bit 'stupid proof' and i will back up > 'stuff' even if you done typo or so. > > if your fileset contain not existing directory would you like to have > backup anyway or not? > > it means as you are warned about some problems but they are not critical. > for me it has a lot of sense. and i think as it is good way of doing it. > > is it what you asked for? Yes and no ;-) The if the status of the backup was "with warnings" then I would expect this to be reflected in the subject of the e-mail. One real-life example... We have a job to backup up the Bacula database. The 'make_catalog_backup' script is executed at the start and 'delete_catalog_backup' at the end, and the job is defined to back up only *one* file - the dumped Bacula SQL database text file. However at some point the dumped database became to large for the file-system and the 'make_catalog_backup' and 'delete_catalog_backup' script were modified to dump the database to a different file-system. For some time this job had failed completely because it could no longer find the file to back up! Our Bacula database backups were failing and we didn't know! The subject of the job e-mail told us "Backup OK" which was taken to mean just that - that the backup was OK. However the actual backup status in the contents of the e-mail was "with warnings". If the subject reflected the same state as the log then someone would have realised the first night! I find the fact that the subject differs from the actual status illogical. Many thanks, Justin - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] E-mails with the subject "Backup OK" when warnings have occurred.
tomasz dereszynski wrote: > [EMAIL PROTECTED] wrote: > >> Hi, >> As a new user, I'll start by thanking Kern (see you at the UKUUG) and >> everyone who's contributed to Bacula! >> >> When the backup status is "Backup OK -- with warnings" the subject of >> the report e-mail is always "Backup OK". >> My co-workers (and sometimes I) often miss small problems that cause the >> warnings because it's assumed from the subject of the e-mail that the >> backup was completely successful - especially with a high volume of >> e-mailed reports. >> >> My natural assumption is that the e-mail subject would be the same as >> the backup status. >> Is this not the case by design? >> >> > look into bacula log file. > it often mean as you tried to back up /dev or fileset include directory > which do not exist on fd server. > check out in log. > Hi Tomasz, Thanks for your reply, but that wasn't what I was asking ;-) Justin - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] E-mails with the subject "Backup OK" when warnings have occurred.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [EMAIL PROTECTED] wrote: > tomasz dereszynski wrote: >> [EMAIL PROTECTED] wrote: >> >>> Hi, >>> As a new user, I'll start by thanking Kern (see you at the UKUUG) and >>> everyone who's contributed to Bacula! >>> >>> When the backup status is "Backup OK -- with warnings" the subject of >>> the report e-mail is always "Backup OK". >>> My co-workers (and sometimes I) often miss small problems that cause the >>> warnings because it's assumed from the subject of the e-mail that the >>> backup was completely successful - especially with a high volume of >>> e-mailed reports. >>> >>> My natural assumption is that the e-mail subject would be the same as >>> the backup status. >>> Is this not the case by design? >>> >>> >> look into bacula log file. >> it often mean as you tried to back up /dev or fileset include directory >> which do not exist on fd server. >> check out in log. >> > Hi Tomasz, > Thanks for your reply, but that wasn't what I was asking ;-) > > Justin depends subject is the same as the backup status! as bacula backed up with no errors everything it could! it couldnt backup some stuff cos for example it do not exist then it is not error only warning. cos the 'small problems you miss' are not problems in terms of how useful is what you backed up. i will more say as bacula is bit 'stupid proof' and i will back up 'stuff' even if you done typo or so. if your fileset contain not existing directory would you like to have backup anyway or not? it means as you are warned about some problems but they are not critical. for me it has a lot of sense. and i think as it is good way of doing it. is it what you asked for? - -- bEsT rEgArDs| "Confidence is what you have before you tomasz dereszynski | understand the problem." -- Woody Allen | Spes confisa Deo| "In theory, theory and practice are much numquam confusa recedit | the same. In practice they are very | different." -- Albert Einstein -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHowIF5GTLLfVywbsRAgKcAJ9zteSSZrChfa6giqwii6GEDGGN3gCcC+J2 0n4biZL3pGWOEMZxKeqIENw= =/O5A -END PGP SIGNATURE- - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] E-mails with the subject "Backup OK" when warnings have occurred.
[EMAIL PROTECTED] wrote: > Hi, > As a new user, I'll start by thanking Kern (see you at the UKUUG) and > everyone who's contributed to Bacula! > > When the backup status is "Backup OK -- with warnings" the subject of > the report e-mail is always "Backup OK". > My co-workers (and sometimes I) often miss small problems that cause the > warnings because it's assumed from the subject of the e-mail that the > backup was completely successful - especially with a high volume of > e-mailed reports. > > My natural assumption is that the e-mail subject would be the same as > the backup status. > Is this not the case by design? > look into bacula log file. it often mean as you tried to back up /dev or fileset include directory which do not exist on fd server. check out in log. > We're running version 2.2.8. -- bEsT rEgArDs| "Confidence is what you have before you tomasz dereszynski | understand the problem." -- Woody Allen | Spes confisa Deo| "In theory, theory and practice are much numquam confusa recedit | the same. In practice they are very | different." -- Albert Einstein - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users