Amanda-Users

Re: Exclude list entries

2006-07-13 23:37:47
Subject: Re: Exclude list entries
From: Jon LaBadie <jon AT jgcomp DOT com>
To: amanda-users AT amanda DOT org
Date: Thu, 13 Jul 2006 23:17:14 -0400
On Fri, Jul 14, 2006 at 09:47:22AM +0700, Olivier Nicole wrote:
> > "When AMANDA attempts to exclude a file or directory it does so relative to
> > the area being archived. For example if /var is in your disklist and you
> > want to exclude /var/log/somefile, then your exclude file would contain
> > ./log/somefile"
> 
> I understand that rather as a warning not to use /var in the path
> 
> > I really just want to confirm whether or not I could have used the entries
> > without ./ and what the difference between the different sets of entries
> > would be.
> 
> I think it does not make any difference (except maybe for path
> globing?), it will exclude any file ending with the suffix .ora, in
> any subdirectory that you are backuping.

No there really is a difference between excluding /foo, ./foo, and foo.

As you are backing up ".", /foo will not match anything.

./foo will match any foo in the top level directory "."

foo will match any foo in any directory under .

> 
> The exclude list is handed as-is to gnu-tar, so one way to make sure
> it does what you want is to try it with gnu-tar manually.

and it is fast if you do it to /dev/null, as in

   gtar cvf /dev/null -exclude 'whatever' .

-- 
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>