Amanda-Users

Re: Exclude list entries

2006-07-14 13:59:19
Subject: Re: Exclude list entries
From: Jon LaBadie <jon AT jgcomp DOT com>
To: amanda-users AT amanda DOT org
Date: Fri, 14 Jul 2006 13:49:35 -0400
On Fri, Jul 14, 2006 at 10:54:07AM +0700, Olivier Nicole wrote:
> > No there really is a difference between excluding /foo, ./foo, and foo.
> > As you are backing up ".", /foo will not match anything.
> 
> Of course
> 
> > ./foo will match any foo in the top level directory "."
> > foo will match any foo in any directory under .
> 
> Not so sure:

Gee, can we be sure of anything with gnutar ;)

> 
> banyan<on>:  /usr/local/bin/tar --version
> tar (GNU tar) 1.13.25
> Copyright (C) 2001 Free Software Foundation, Inc.
> This program comes with NO WARRANTY, to the extent permitted by law.
> You may redistribute it under the terms of the GNU General Public License;
> see the file named COPYING for details.
> Written by John Gilmore and Jay Fenlason.
> banyan<on>: /usr/local/bin/tar cfv /dev/null . | grep jpg
> ./Images/Picture-2 003.jpg
> ./Images/Picture-2 005.jpg
> ./maman.jpg
> banyan<on>: cat ../excl
> ./*.jpg
> banyan<on>: /usr/local/bin/tar cfv /dev/null --exclude-from=../excl . | grep 
> jpg 
> banyan<on>: cat ../excl2
> *.jpg
> 
> banyan<on>: /usr/local/bin/tar cfv /dev/null --exclude-from=../excl2 . | grep 
> jpg
> 
> Excl contains ./*.jpg and excl2 contains *.jpg but they both exclude
> any .jpg file in any level of the hierarchy.
> 
> OK, funny enough, tar 1.13.19 on another machine gives different
> results, but still, tar 1.13.25 is recommeneded version isn't it?

I thought either.

Fessing up, my test was with tar 1.15.1 and actually I used
 --exclude 'pattern' rather than --exclude-from file_of_patterns.

Beginning to sound like its try til you get what works for you.

-- 
Jon H. LaBadie                  jon AT jgcomp DOT com
 JG Computing
 4455 Province Line Road        (609) 252-0159
 Princeton, NJ  08540-4322      (609) 683-7220 (fax)

<Prev in Thread] Current Thread [Next in Thread>