Amanda-Users

Re: Exclude list syntax.

2005-03-08 18:22:42
Subject: Re: Exclude list syntax.
From: "Erik P. Olsen" <erik AT epo DOT dk>
To: amanda-users AT amanda DOT org
Date: Wed, 09 Mar 2005 00:09:37 +0100
On Tue, 2005-03-08 at 17:13 -0500, Jon LaBadie wrote:
> 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.

Beautiful!

Thanks a lot.
-- 
Regards,
Erik P. Olsen


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