bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-tar] Excluding directories based on content


From: Joerg Schilling
Subject: Re: [Bug-tar] Excluding directories based on content
Date: Mon, 20 Nov 2006 15:05:43 +0100
User-agent: nail 11.22 3/20/05

"Dr. David Alan Gilbert" <address@hidden> wrote:

> > The following command will archive everything, except directories that
> > contain file FILENAME:
> > 
> >   find . -type d -exec test -r {}/FILENAME \; -prune -o -print |
> >      tar --no-recursion -cf archive.tar -T -
> >      
> > Extending it to cover two or three file names is not difficult.
>
> Interesting - I'll give that a go, I'm not sure how much the exec's
> of test will cost; (I guess the easiest way for the 2 markers I need
> is to add it as a -o within the test for the other name).

How many different markers do you have?

Jörg

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]