[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bacula-bugs
Subject:    [Bacula-bugs] [Feature Requests 0002133]: Bacula FileSet Variable
From:       Mantis Bug Tracker <nobody () bugs ! bacula ! org>
Date:       2015-09-17 17:51:16
Message-ID: 48bcfbd2b85138879c031b73b72254f5 () bugs ! bacula ! org
[Download RAW message or body]


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.bacula.org/view.php?id=2133 
====================================================================== 
Reported By:                hfaria
Assigned To:                
====================================================================== 
Project:                    Feature Requests
Issue ID:                   2133
Category:                   General
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2015-05-16 13:51 BST
Last Modified:              2015-09-17 18:51 BST
====================================================================== 
Summary:                    Bacula FileSet Variable
Description: 
Implement Bacula FileSet Variable to improve scripting capabilities and maybe do
a show FileSet during backups, improving log information. 
====================================================================== 

---------------------------------------------------------------------- 
 (0007188) hfaria (reporter) - 2015-09-17 16:49
 http://bugs.bacula.org/view.php?id=2133#c7188 
---------------------------------------------------------------------- 
I just made and tested a patch to implement the FileSet variable:

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

---------------------------------------------------------------------- 
 (0007189) hfaria (reporter) - 2015-09-17 17:53
 http://bugs.bacula.org/view.php?id=2133#c7189 
---------------------------------------------------------------------- 
Now 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}
 }; 

---------------------------------------------------------------------- 
 (0007190) hfaria (reporter) - 2015-09-17 18:51
 http://bugs.bacula.org/view.php?id=2133#c7190 
---------------------------------------------------------------------- 
There is already a better way of retrieving the FileSet name during backup time
with character substitution (%f):
http://www.bacula.org/5.2.x-manuals/en/main/main/Configuring_Director.html
Closing ticket. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2015-05-16 13:51 hfaria         New Issue                                    
2015-09-17 16:49 hfaria         Note Added: 0007188                          
2015-09-17 17:53 hfaria         Note Added: 0007189                          
2015-09-17 18:51 hfaria         Note Added: 0007190                          
======================================================================



------------------------------------------------------------------------------
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-bugs mailing list
Bacula-bugs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic