"Dr. David Alan Gilbert" <[EMAIL PROTECTED]> wrote:

> Hi,
>   Is there a way to exclude a directory based on the content
> of that directory?  In particular I'm after a way to say
> 'don't back up a directory if it contains a file called .....'
> (where ..... is a regexp or at least a list of a few filenames).
> I see there is support explicitly for a cache dir exclusion,
> but I was looking for something a little more generic?

In general this is impossible or hard to implement because this would
need to scan a directory "in advance".

It you believe that this could be implemented using find(1), get star:

ftp://ftp.berlios.de/pub/star/alpha/

try:

star -c f=/tmp/some.tar -find <find expression>



Jörg

-- 
 EMail:[EMAIL PROTECTED] (home) Jörg Schilling D-13353 Berlin
       [EMAIL PROTECTED]                (uni)  
       [EMAIL PROTECTED]     (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily


Reply via email to