Amanda-Users

Re: GNUTAR exclude lists not working in Windows or Linux

2005-06-02 16:00:57
Subject: Re: GNUTAR exclude lists not working in Windows or Linux
From: Joe Rhett <jrhett AT meer DOT net>
To: Gene Heskett <gene.heskett AT verizon DOT net>
Date: Thu, 2 Jun 2005 12:50:47 -0700
On Thu, Jun 02, 2005 at 08:02:21AM -0400, Gene Heskett wrote:
> >> > And as I noted before, and someone tried to explain away, it
> >> > appears that the command line invocation for the exclude list is
> >> > wrong (missing an equals) runtar.20050601020202.debug:
> >> >  running: /bin/tar: gtar --create --file - --directory /
> >> > --one-file-system --listed-incremental
> >> > /var/lib/amanda/gnutar-lists/client-host3__0.new --sparse
> >> > --ignore-failed-read --totals --exclude-from /etc/exclude.gtar .
> >>
> >> I don't know what equals sign you feel is missing.
> >> The man page I have for gnutar does not show an equal sign
> >> needed with the --exclude-from option:
> 
> My amanda.conf shows that syntax, however my dumptypes that use this 
> option use it like this:
>         exclude file "/amanda/excludes"
 
Hm.  Mine says "exclude list", and according to the man page

     exclude [ list|file ][[optional][ append ][ "string" ]+]
          Default:  file.  There is two exclude list exclude file
          and  exclude  list. With exclude file , the string is a
          gnutar exclude expression.  With  exclude  list  ,  the
          string  is  a file name on the client containing gnutar
          exclude expression.

Does yours work?  If so, perhaps it's a documentation problem?

> The contents of the above file:
> 
> ./*.iso
> ./FC3
> ./FC3-SRPMS
> 
> And it works, albeit in an all linux environment with tar-1.15 on the 
> server, and tar-1.13-25 on my one client.

Does the server version of tar matter for excludes?

> Can we have the output of a 'tar --version' on each of these boxes?
 
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.

> Also, that line of the revelant dumptype that specifys the exclude 
> file, starting the lookup by consulting the disklist to get the 
> actual dumptype being used, and showing us a snip of that dumptype 
> please.
 
I had supplied these in my original report, and in the latest report as
well.  They were removed from the quoted text.  Here it is again:

disklist:

client-host1         /                        user-tar

amanda.conf:

define dumptype global {
    index yes
}

define dumptype root-tar {
    global
    program "GNUTAR"
    comment "root partitions dumped with tar"
    compress none
    exclude list "/etc/exclude.gtar"
    priority low
}

define dumptype user-tar {
    root-tar
    comment "user partitions dumped with tar"
    priority medium
}


-- 
Joe Rhett
senior geek
meer.net