[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: |
Tue, 14 Nov 2006 13:24:27 +0100 |
User-agent: |
nail 11.22 3/20/05 |
"Dr. David Alan Gilbert" <address@hidden> 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: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