Bacula-users

Re: [Bacula-users] wilddir not working as expected

2012-10-05 12:39:34
Subject: Re: [Bacula-users] wilddir not working as expected
From: Martin Simmons <martin AT lispworks DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Fri, 5 Oct 2012 17:36:58 +0100
>>>>> On Thu, 04 Oct 2012 21:43:32 +0200, Radim Kolar said:
> 
> I have following fileset:
> 
> FileSet {
>    Name = "Web Crawler"
> 
>    Include {
>      Options {
>        signature = MD5
>        compression = GZIP9
>        exclude = yes
>        wilddir = "target"
>      }
> 
>      File = /home/crawler
>    }
>    Exclude {
>          File = /home/crawler/nutch-1.3/runtime/local/segments
>          File = /home/crawler/solr/example/solr/nutch/data
>          File = /home/crawler/.m2/repository
>    }
> }
> 
> idea is not to backup directories which have "target" in name like:
> 
> ./conf/target
> ./packages/tools/target
> ./packages/info/target
> ./packages/plugins/target
> ./info/target
> ./src/target
> ./src/plugin/index-basic/target
> ./src/plugin/parse-html/target
> ./src/plugin/urlnormalizer-pass/target
> ./src/plugin/parse-js/target
> ./src/plugin/microformats-reltag/target
> ./src/plugin/protocol-ftp/target
> ./src/plugin/urlnormalizer-basic/target
> 
> but it didn't work, all target directories are backed up. Can anybody 
> spot a mistake?

I think you need wilddir = "*/target" because it matches the whole path, not
just the final component.

__Martin

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>