bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Exclusions not working


From: John Goerzen
Subject: Exclusions not working
Date: Fri, 3 Nov 2000 07:58:30 -0600
User-agent: Mutt/1.2.5i

Good morning,

I wrote the below message to a mailing list for Amanda, a backup system that
uses GNU tar.  However, further checking seems to indicate that the problem
is with GNU tar and not amanda.

A bit of extra information might be necessary for you.  Amanda will run on a
machine and chdir to the relevant directory (/var in this case) before
running tar.  Then it will run tar on ".", which means that all of the files
in the tarfile start with "./".  Exclude patterns such as "./lib" work fine,
but anything with a wildcard, such as "./lib/lists-archives/archives/*" does
not.  The patterns are specified in a file that is passed to GNU tar as an
--exclude-from file.   I'm using tar 1.13.17.

Thankd!

-- John Goerzen

----- Forwarded message from John Goerzen <address@hidden> -----

X-Addr-Extension: sent-mail
Delivered-To: address@hidden
To: address@hidden
Subject: Exclusions not working
From: John Goerzen <address@hidden>
Date: 02 Nov 2000 19:09:55 -0500
User-Agent: T-gnus/6.14.5 (based on Gnus v5.8.7) (revision 05) EMY/1.13.9
 (Art is long, life is short) Chao/1.14.1 (Rokujiz?)
 APEL/10.2 MULE XEmacs/21.1 (patch 12) (Channel Islands) (i386-debian-linux)

Hi,

In my exclude rules for the /var filesystem backup, I have some lines
like this:

./spool/postfix/private/*
./lib/lists-archives/archives/*

Which, according to the docs, are the right way to do this (there are
sockets in those directories which cause gtar warnings.)  However,
they are ignored!  Also, lines like:

*/no-backup/*

are ignored -- even though this is basically EXACTLY like an example
in the book chapter.  However:

no-backup

works.  (Although it totally excludes the directory and not just its
contents).  Also, likes like this work:

It seems that everything with asterisks is broken.  Patterns without
wildcards, eg:

./lib

correctly exclude the directory.

I have GNU tar 1.13.17, Amanda 2.4.1p1, running on a set of Debian
GNU/Linux systems.

Thanks!
-- John

-- 
John Goerzen <address@hidden>                       www.complete.org
Sr. Software Developer, Progeny Linux Systems, Inc.    www.progenylinux.com
#include <std_disclaimer.h>                     <address@hidden>


----- End forwarded message -----

-- 
John Goerzen <address@hidden>                       www.complete.org
Sr. Software Developer, Progeny Linux Systems, Inc.    www.progenylinux.com
#include <std_disclaimer.h>                     <address@hidden>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]