Bacula-users

Re: [Bacula-users] RegEx to filter every other file format

2014-09-22 09:44:45
Subject: Re: [Bacula-users] RegEx to filter every other file format
From: Phil Stracchino <phils AT caerllewys DOT net>
To: bacula-users AT lists.sourceforge DOT net
Date: Mon, 22 Sep 2014 09:22:54 -0400
On 09/20/14 10:23, Heitor Faria wrote:
> Mr. Bacula Users,
> 
> I'm trying to formulate a RegEx on fileset that excludes from backup
> everything expect a specific file type (.odt), just as curiosity (I know
> I could use WildFile + RegexFile Exclude .*).
> I've created a test directory with those files: 
> root@hfaria-ThinkPad-T420:/test# ls 
> heitor  heitor.odd  heitor.odt  heitor.odx  heitor.ott  heitor.oxx  odd
>  odt  odx
> I've tried this [1]: Regexfile = "^.*[^o][^d][^t]$"; Exclude = yes; But
> no files are filtered. 
> Then I tried this [2]: Regexfile = "^.*[^o][^d][^t]"; Exclude = yes; And
> it filtered all files.
> Questions: what is the format of the file list RegexFile uses? Any hints
> on this?


Might it not be more efficient to simply generate your Fileset
dynamically from a script that does a find / -name \*.odt, instead of
scanning the entire filesystem for everything and then discarding
everything *but* .odt ? ?


-- 
  Phil Stracchino
  Babylon Communications
  phils AT caerllewys DOT net
  phil AT co.ordinate DOT org
  Landline: 603.293.8485

------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users