[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 14:50:54 +0100 |
User-agent: |
nail 11.22 3/20/05 |
"Dr. David Alan Gilbert" <address@hidden> wrote:
> > ftp://ftp.berlios.de/pub/star/alpha/
> >
> > try:
> >
> > star -c f=/tmp/some.tar -find <find expression>
>
> I can't immediately see how to do this with a find expression since I
> can't see how to test for the existance of a file within the directory
> (if the current filename passed to the find parser is the directory).
>
> Our current solution for this is to run a find on the directory searching
> for the exclusion markers (which are actually just two filenames)
> and with a little seding to cut those names off the output, generate
> an exclusion list of directories for tar (we also add a starter list
> of a few patterns to exclude core's and the like). The problems with
> this are that firstly the extra traversal of the filesystem tree is
> slow, and secondly some of the filesystems I backup like this contain
> many hundreds (possibly thousands?) of exclude markers, and the tar is
> running excrutiatingly slowly (in this case about 7 hours). (To be fair,
> I haven't profiled it to see if it is the matching code or not)
In order to understand why things are slow, I need to know how many files
you have to traverse, how many directories and how many excluse patterns.
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
- Re: [Bug-tar] Excluding directories based on content, (continued)
- 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 <=