Amanda-Users

RE: Second config

2003-12-17 09:55:37
Subject: RE: Second config
From: "Bort, Paul" <pbort AT tmwsystems DOT com>
To: Amanda Users <amanda-users AT amanda DOT org>
Date: Wed, 17 Dec 2003 09:52:32 -0500
> 
> Hey eveyrone,
> 
> Now that I've got a set of tapes running, I'm trying to 
> figure out how to
> include another set of tapes.  What I would like to do is have an
> identical set of tapes same number, same tapecycle, etc., but named
> sligtly differently that I can rotate off-site.
> 

I haven't done this with two configurations, but I've done it with one, just
by setting the *cycle numbers correctly in amanda.conf. If tapecycle is
2*dumpcycle, you will have two complete sets of backup tapes. In my case,
each set was a magazine that loaded into the changer, so they were easy to
keep separate. It just worked.

If you want to be more explicit about it, you could write a couple of shell
scripts:

Odd weeks:
amadmin DailySet1 reuse DailySet001
amadmin DailySet1 reuse DailySet002
amadmin DailySet1 reuse DailySet003
amadmin DailySet1 reuse DailySet004
amadmin DailySet1 reuse DailySet005
amadmin DailySet1 no-reuse DailySet006
amadmin DailySet1 no-reuse DailySet007
amadmin DailySet1 no-reuse DailySet008
amadmin DailySet1 no-reuse DailySet009
amadmin DailySet1 no-reuse DailySet010

Even weeks:
amadmin DailySet1 reuse DailySet006
amadmin DailySet1 reuse DailySet007
amadmin DailySet1 reuse DailySet008
amadmin DailySet1 reuse DailySet009
amadmin DailySet1 reuse DailySet010
amadmin DailySet1 no-reuse DailySet001
amadmin DailySet1 no-reuse DailySet002
amadmin DailySet1 no-reuse DailySet003
amadmin DailySet1 no-reuse DailySet004
amadmin DailySet1 no-reuse DailySet005

You could even get creative with a status flag file, combine them into one,
and cron it to run weekly. 

But I don't see the need for two configurations.

If you really want two configurations, the way I did it was to copy the
DailySet1/ directory to a different name in the same parent. Do this in as
many places as it appears, update the config file with the new config name
and directory, and wipe the tape list. (I suppose you could clean up the
curinfo and logs, but I never bothered.)

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