[Top][All Lists]
[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
- [Bug-tar] Excluding directories based on content, Dr. David Alan Gilbert, 2006/11/09
- Re: [Bug-tar] Excluding directories based on content, Dr. David Alan Gilbert, 2006/11/18
- Re: [Bug-tar] Excluding directories based on content, Joerg Schilling, 2006/11/19
- Re: [Bug-tar] Excluding directories based on content, Sergey Poznyakoff, 2006/11/19
- Re: [Bug-tar] Excluding directories based on content, Joerg Schilling, 2006/11/19
- Re: [Bug-tar] Excluding directories based on content, Eric Blake, 2006/11/19
Re: [Bug-tar] Excluding directories based on content, Joerg Schilling, 2006/11/20