Variable in Fileset Exclude-list

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Variable in Fileset Exclude-list

Daniel Heitepriem
Hi everybody,

is it possible to use variables or similar in exclude list of filesets?
Imagine we have this job declaration:

Job {
   Name = "tester.logs"
   Storage = WEST
   JobDefs = "DefaultJob"
   Schedule = "Early"
   Write Bootstrap = "/etc/bacula/bsr/test.bsr"
   Client = client1
   FileSet = "tester.logs"
   RunScript {
     RunsWhen = After
     FailJobOnError = No
     Command = "/opt/bacula/libexec/cleanup.sh %i"
     RunsOnSuccess = Yes
     RunsOnClient = Yes
   }
}

FileSet {
   Name = "tester.logs"
   Include {
     Options {
       signature = MD5
       compression=GZIP
     }
     File = /logs/tomcat
     File = /logs/mongodb
   }
   Exclude {
     File = /logs/tomcat/catalina.out
     File = /logs/mongo/mongo.log
     File = /logs/tomcat/localhost_access_log.$(date +%Y-%m-%d).txt <--
Possible ??
   }
}


The last line of the exclude list is the one I'm not sure about. Tomcat
by default creates these "localhost_access_log.%DATE%.txt", e.g.
localhost_access_log.2017-01-10.txt. Does this expression in the config
file word or should I work around it by using a script or similar?

Thanks and best regards,

Daniel Heitepriem


------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Bacula-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/bacula-users