Amanda-Users

Re: Amanda exclusion: is amanda (gnutar) able to differentiate between direcoty and file names ?

2005-05-15 23:22:01
Subject: Re: Amanda exclusion: is amanda (gnutar) able to differentiate between direcoty and file names ?
From: Jon LaBadie <jon AT jgcomp DOT com>
To: amanda-users AT amanda DOT org
Date: Sun, 15 May 2005 22:18:57 -0400
On Sun, May 15, 2005 at 07:12:39PM -0400, Guy Dallaire wrote:
> Hi,
> 
> I want to exclude some directories (and subdirs) from amanda. 
> Unfortunately, under other subdirs, I may have files that have the
> same name pattern of the directories i'm trying to exclude.
> 
> Ex:
> 
> I want to exclude all "oradata" directories:
> 
> I have the following directory tree and files:
> 
> mount_point
> |
> ------some_dir
> |            some_file.dat
> ------oradata
> |            some_other_file.txt
> ------some other dir
> |            file diskx_oradata_tbs.dbf 
> |            file abc_oradata_idx.dbf
> 
> I want to exclude from the backup, the "oradata" directory, but NOT
> the files that contain oradata in their name.
> 
> Is there a way to tell amanda to exclude only files, or only
> directories based on a pattern ?
> 

It sounds as if you believe an exclude pattern of "./foo" will
exclude any file and/or directory containing the string 'foo'.
Not so, "./foo" will only match, and only exclude one item.
It may be a file called 'foo' under the mount point or it
may be a directory in the same location.  If 'foo' is a file,
that is all that is excluded.  If 'foo' is a directory, then
the directory and everything under it is excluded.  No other
directories or files are affected.

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