Amanda-Users

Re: GNUTAR exclude lists not working in Windows or Linux

2005-06-01 23:45:00
Subject: Re: GNUTAR exclude lists not working in Windows or Linux
From: Jon LaBadie <jon AT jgcomp DOT com>
To: amanda-users AT amanda DOT org
Date: Wed, 1 Jun 2005 23:27:11 -0400
On Wed, Jun 01, 2005 at 07:25:44PM -0700, Joe Rhett wrote:
> Okay, last year I had observed that perfectly valid gnutar exclude lists
> were being ignored by amanda on Windows machines.  The best answer anyone
> could give me was to build my own tar program that does the excludes, and
> replace "runtar".

I forget the discussion, but there must have been more than that,
backing up of windows boxes does not use gnutar but smbclient.
Different cmd line syntax for excludes.

> 
> Well now I've enabled my first gnutar linux clients, and they are seeing
> the exact same problem.  /tmp/amanda/sendsize.debug and runtar.debug both
> show that the exclude list is being passed to tar, but they are ignored.
> 
> These systems I can test with to my heart's content, unlike those Windows
> boxes, so tell me what you need to know.
> 
> 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:

  SYNOPSIS
     tar [ - ] A --catenate  --concatenate  |  c  --create  [  --
     atime-preserve  ]  [ -b, --block-size N ] [ -B, --read-full-
     ...
     --confirmation  ] [ -W, --verify    ] [ --exclude FILE ] [ -
     X, --exclude-from FILE ] [ -Z, --compress, --uncompress ]  [
     ...


     -X, --exclude-from FILE
         exclude files listed in FILE


> /etc/exclude.gtar
>       $ cat /etc/exclude.gtar 
>       ./*
>       ,/
>       *

If I recall the syntax correctly, each entry must begin "./"

The first is valid and would exclude everything with the possible
exception of "dot" files (eg  .profile).

Second and third are invalid.

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