From: Heitor F. <he...@ba...> - 2015-09-17 16:56:52
|
Just in time, with diff -u: --- /usr/src/bacula-7.0.5/src/dird/expand.c 2014-07-29 13:31:22.000000000 -0300 +++ ./expand.c 2015-09-17 12:03:47.603786349 -0300 @@ -123,6 +123,9 @@ case 12: /* JobName */ str = jcr->Job; break; + case 13: /* FileSet */ + str = jcr->fileset->name(); + break; } *val_ptr = bstrdup(str); *val_len = strlen(str); @@ -157,6 +160,7 @@ { NT_("Catalog"), 10, job_item}, { NT_("MediaType"), 11, job_item}, { NT_("JobName"), 12, job_item}, + { NT_("FileSetName"), 13, job_item}, { NULL, 0, NULL} }; ======================================================================= Heitor Medrado de Faria - LPIC-III | ITIL-F | Bacula Systems Certified Administrator II Treinamento Presencial Brasília: 09 a 11 de outubro. Telepresencial: 14 de outubro. Ministro treinamento in-company Bacula (com implementação) na sua cidade. Mais informações: http://www.bacula.com.br/?p=2174 61 8268-4220 Site: www.bacula.com.br | Facebook: heitor.faria ======================================================================== > From: "Heitor Faria" <he...@ba...> > To: "bacula-devel" <bac...@li...> > Sent: Thursday, September 17, 2015 12:57:33 PM > Subject: [Bacula-devel] Bacula FileSet Variable > Dear Developers, > I just made a simple patch to enable a FileSet variable for Bacula (please > inform me if it's not the right way to do that). > I truly believe this is important so some users can set a "show ${FileSet}" > before the backup jobs if they have more strict auditing policies; or just > would improve support capabilities and troubleshooting, since FileSets content > may suffer change all over the time. > Despite of more log output it would be helpful to know at a glance: compression > and signature level/algorithm; wildcards & regexp; includes / excludes at the > fileset etc. > This is the content (posted here: http://bugs.bacula.org/view.php?id=2133): > diff expand.c /usr/src/bacula-7.0.5/src/dird/expand.c > 126,128d125 > < case 13: /* FileSet */ > < str = jcr->fileset->name(); > < break; > 163d159 > < { NT_("FileSetName"), 13, job_item}, > Regards, > =========================================================================== > Heitor Medrado de Faria - LPIC-III | ITIL-F | Bacula Systems Certified > Administrator II > Do you need Bacula training? > https://www.udemy.com/bacula-backup-software/?couponCode=bacula-list > I do Bacula training and deploy in any city of the world. More information: > http://bacula.us/ > +55 61 8268-4220 > Site: http://bacula.us FB: heitor.faria > =========================================================================== > ------------------------------------------------------------------------------ > Monitor Your Dynamic Infrastructure at Any Scale With Datadog! > Get real-time metrics from all of your servers, apps and tools > in one place. > SourceForge users - Click here to start your Free Trial of Datadog now! > http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140 > _______________________________________________ > Bacula-devel mailing list > Bac...@li... > https://lists.sourceforge.net/lists/listinfo/bacula-devel |