Amanda-Users

Re: Exclude list syntax.

2005-03-08 17:21:11
Subject: Re: Exclude list syntax.
From: Jon LaBadie <jon AT jgcomp DOT com>
To: Amanda Users List <amanda-users AT amanda DOT org>
Date: Tue, 8 Mar 2005 17:13:30 -0500
On Tue, Mar 08, 2005 at 10:09:04PM +0100, Erik P. Olsen wrote:
> Is it possible to use todays date as element in a filename in an exclude
> list? 

You can have multiple exclude statements, IIRC, at most one can omit the
"append" argument.  Given that, you could have one exclude statement
read a file created at the start of your amdump run with an appropriate
pattern.

   echo "./###$(date +%Y%m$d)###" > /path/to/exclude/pattern/of/the/day/file
   amdump ....

Replace the ###'s with whatever constant or filename pattern you need
and the date command with whatever syntax your date string needs demand.

Then your dumptype might have something like

   exclude list append optional /path/to/exclude/pattern/of/the/day/file

The path could be absolute or relative to the root of the DLE.

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

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