Amanda-Users

Re: How do you stop Amanda overwriting a tape?

2004-08-31 09:43:19
Subject: Re: How do you stop Amanda overwriting a tape?
From: Christoph Scheeder <christoph.scheeder AT scheeder DOT de>
To: Ranveer Attalia <Ranveer.Attalia AT tertio DOT com>
Date: Tue, 31 Aug 2004 15:41:30 +0200
Errm,
Therre seems to be something broken in your weekly and Pedcent configuration. the regexpressions giving the labels for "weekly" and "Pedcent" should be choosen in a way that "Pedcent" tapes are not accepted by "weekly" and vice versa. And make shure the two configs don't share the tapelist.
Then you get exactly the behavior you want.
i would suggest putting something like

labelstring  "Peg[0-9].[0-9]*"

in the amanda.conf of your Pedcent-config and

labelstring  "Fri[0-9].[0-9]*"

in the weekly amanda.conf. I use

labelstring  "Weekly[0-9]*"

for my weekly-tapes, but thats my way of doing this....
Christoph

Ranveer Attalia schrieb:
I schedule a full backup of our servers on Fridays which is part of the
"Weekly" amanda config. I also schedule a separate full backup of our
critical server called Pedcent on Sundays which is part of the "Pedcent"
amanda config:
$ crontab -l
00 22 * *  1-4 /opt/amanda/sbin/ambackup Daily >>
/tmp/ambackup_Daily.log 2>&1
00 21 * * 5 /opt/amanda/sbin/ambackup Weekly >> /tmp/ambackup_Weekly.log
2>&1
00 14 * *  0 /opt/amanda/sbin/ambackup Pedcent >>
/tmp/ambackup_Pedcent.log 2>&1
Hence the tapes I put into the jukebox on Fridays are as follows: Slot 1: Fri3.1
Slot 2: Fri3.2
Slot 3: Peg0.1
where Peg0.1 is used for the "Pedcent" full backup. Evey Monday I
receive 2 emails. One telling me that the "Weekly" was successful and
the other telling me that "Pedcent" was successful. Here is where the
BUT comes in......
After doing a recent system disk restore I noticed that when searching
for a server to restore from the "Weekly" disklist, it told me to load
the Fri3.1 tape. When I read it however, it was displaying all of
"Pedcent" partitions. This means that it had actually overwritten the
first tape. Did this happen because there wasnt enough room on the
Peg0.1 tape so it just went to Fri3.1 ? (there is plenty of room on the
Peg0.1 tape by the way)
Is there a way that Amanda will request a new tape to be loaded if it
reaches to the end of its assigned tape, without going off and
overwriting a previous one?
Thanks - Ranveer
________________________________________________________________________

Tertio Telecoms (www.telco-tertio.com)

Head Office: One Angel Square  Torrens Street  London  EC1V 1PL
Tel: +44 (0)20 7843 4000 - Fax: +44 (0)20 7843 4001

Bath Office: Riverside Buildings  108 Walcot Street  Bath  BA1 5BG
Tel: +44 (0)1225 478000 - Fax: +44 (0)1225 478001
Munich Office: Freisinger Strasse 10, 85737 Ismaning/Munich, Germany,
Tel: +49 (0)89 665506 41 - Fax: +49 (0)89 665506 99

Any views expressed in this message are those of the individual sender,
except where the sender specifically states them to be the views of Tertio Ltd.

This email has been scanned by the MessageLabs Email Security System.
________________________________________________________________________


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