Amanda-Users

Re: GNUTAR "include" instead of "exclude"

2003-01-05 17:20:59
Subject: Re: GNUTAR "include" instead of "exclude"
From: Jean-Louis Martineau <martinea AT iro.umontreal DOT ca>
To: "John R. Jackson" <jrj AT purdue DOT edu>
Date: Sun, 5 Jan 2003 16:44:13 -0500
On Sun, Jan 05, 2003 at 03:04:21PM -0500, John R. Jackson wrote:
> >> Is there a way to specify a file of patterns to include rather than to
> >> exclude with the GNUTAR type?  Here's the scenario:
> >> 
> >In 2.4.3, check man amanda for "include", much like "exclude".
> 
> Note carefully that Jon says "like".  The "include" keyword does *not*
> do patterns.  You must explicitly list each item to be included.
> 
> And, like "exclude", if you give it a file of items, that must exist
> on the client, not the server.
> 
> Also note that the internal implementation is pretty straightforward --
> the list you give Amanda just turns into a bunch of command line args
> passed to GNU tar.  If your OS has limits on the size of a command line
> or number of args, you could bang into that, and the symptoms may not be
> obvious.  Always check your backup system after a significant change (and
> once in a while just for the heck of it :-) with some test restores, etc.

That's not true.

For the exclude, amanda will concatenate all your 'exclude list' into one
file and will add your 'exclude file' to the same file. It pass only 
one '--exclude-from=FILE' argument to gnutar.

It's the same thing for include (--files-from=FILE).

gnutar doesn't support pattern for include but amanda does. It scan the
directory to backup for entry that matches your include, if it match, it
add it to the the files-from files.

That's why include work only at one level, if you have two /, the pattern
will never match.

Jean-Louis
-- 
Jean-Louis Martineau             email: martineau AT IRO.UMontreal DOT CA 
Departement IRO, Universite de Montreal
C.P. 6128, Succ. CENTRE-VILLE    Tel: (514) 343-6111 ext. 3529
Montreal, Canada, H3C 3J7        Fax: (514) 343-5834

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