>I wonder if there is a nice and automatic way to run amanda using 2
>sets of tape. ...
That depends on your definitions of "nice" and "automatic" :-).
>I want to use one set one week and the other set the
>other week. Lets call them DailySet1 and DailySet2.
I'm not sure the following will work -- you'll need to test it.
Let's assume you use one tape per day and you run seven days a week.
Let's also assume that you allocate one extra tape in each "set" for
those days when nothing is going right :-).
So you've got DailySet1-0 through DailySet1-7 and DailySet2-0 through
DailySet2-7 (or some similar pattern).
The first trick is to lie to Amanda about how many tapes there are.
Instead of telling it there are 16, just tell it about one of the sets,
i.e. set tapecycle to 8. But go ahead and label (i.e. get into the
tapelist) all 16 tapes. Obviously, you'll have to set labelstr to accept
either set.
As you go through the first set, you'll use DailySet1-0 through
DailySet1-6 but not DailySet1-7 (unless you have a bad week :-).
To switch from set 1 to set 2, mark the set going "offline" as
"no-reuse" with amadmin:
su <amanda> -c "amadmin <config> no-reuse DailySet1-0"
su <amanda> -c "amadmin <config> no-reuse DailySet1-1"
...
su <amanda> -c "amadmin <config> no-reuse DailySet1-7"
(actually, you can put all the labels on one amadmin command line).
At the same time, mark all the tapes coming online as "reuse":
su <amanda> -c "amadmin <config> reuse DailySet2-0"
su <amanda> -c "amadmin <config> reuse DailySet2-1"
...
su <amanda> -c "amadmin <config> reuse DailySet2-7"
If I've got this right, Amanda should ask for DailySet2-0 next (you can
check it with "amadmin <config> tape") and it should more or less forget
about the other set until you flip them back again a week later.
Since Amanda only thinks there are eight tapes, and it has eight that
are marked "reuse", it won't ask for new tapes. If you set tapecycle
to 16 and only had the eight "reuse" tapes, Amanda would insist on new
tapes until there were 16.
One thing I'm not so sure about is how this will affect the dumpcycle.
Amanda may not "see" the full dumps on the "no-reuse" tapes and get more
desperate to do full dumps than it should. Again, you'll just have to
play with this and see how it goes.
I'm also not sure how amrecover will behave toward "no-reuse" tapes.
It should be pretty easy to write a script that, given a set number to
bring online, does the appropriate amadmin calls by looking through the
tapelist file for all the available labels. Ones that "match" get set
to "reuse", all others get set to "no-reuse".
>Olivier
John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]