Hi,
we have recently added some minor patches to our bacula edition which I would
like to share. This is the first of three patches/mails.
Our bacula setup includes large numbers of clone jobs which result in a large
number of messages/mails. For better handling, we now only send mails for non-
clone jobs by using a custom "mail" command for messages that aggregates
messages of its clones.
The attached (trivial) patch adds a "clone job" job code to the director's job
code callback. I am using "%C" (capital C) at the moment, which is edited to
"yes" or "no" (indicating that the current job is a cloned job, or not,
respectively).
Please feel free to use this patch in upstream or any other bacula editions.
If you consider the patch for upstream inclusion, I'll be happy to provide a
documentation patch as well if required. You have my signed FLA.
Thx
Bastian
--
Collax GmbH . Basler Str. 115a . 79115 Freiburg . Germany
p: +49 (0) 89-990 157-28 www.collax.com
Geschäftsführer: Bernd Bönte, Boris Nalbach
AG München HRB 173695. Ust.-IdNr: DE270819312
--- bacula-5.2.6.ori/src/dird/dird_conf.c 2012-02-23 11:30:12.000000000 +0100
+++ bacula-5.2.6/src/dird/dird_conf.c 2012-02-23 15:07:56.000000000 +0100
@@ -2083,6 +2083,9 @@
case 'D':
return my_name;
break;
+ case 'C':
+ return jcr->cloned ? yes : no;
+ break;
}
return NULL;
}
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Bacula-devel mailing list
Bacula-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-devel