Amanda-Users

Re: Use of RegEx in exclude

2007-01-29 09:12:32
Subject: Re: Use of RegEx in exclude
From: Jean-Louis Martineau <martineau AT zmanda DOT com>
To: Lars Monsees <l.monsees AT atlantisgmbh DOT de>
Date: Mon, 29 Jan 2007 09:02:13 -0500
Lars Monsees wrote:
Hello,

I´m quite new to amanda so I have left something out don´t slap me =)
(I know from the documentation that it is possible to use ?* wildcards.)


We have a server with several customer domains located at our ISP who controls 
the backup. Therefore, it is only possible for us to define an exclude list.

Each domain has a standard set of directories that I don´t want to be included 
in the backup. The directory structure looks like:

- domain123.de
     - anon_ftp
     - etc
     - bla
     - httpdocs
- anotherdomain.com
     (same structure as above)


At the moment, we have the root of all domains in our backup to save the 
httpdocs dir for each domain (also for new domains without adopting anything).
Now, I want to exclude the anon_ftp, etc and bla dir from the backup and tried 
to use a RegEx:

   ./[A-Za-z0-9._-]*\.[A-Za-z]{2,4}/anon_ftp

tar support shell wildcard, it doesn't support RegEx.



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