Re: level 0 dumps getting overwritten?

2001-08-29 Thread Darin Dugan

At 09:57 AM 8/29/2001, Kurt Yoder wrote:
>Darin Dugan wrote:
>
> > Or you need more tapes!
>
>Thanks for the info. I am probably still a bit foggy on the concepts
>behind "dumpcycle", "runspercycle", and "tapecycle".
>
>Questions:
>
>In my case, I _must_ use at least 6 tapes in order for amanda not to
>overwrite any of its level 0 backups?

>If I wanted to use only 2 tapes, I would need to set "runspercycle" to
>2?

Correct, and only run amdump twice in a given dumpcycle (7 days).

>"tapecycle" must always be >= "runspercycle"?

Yes.

>Are there any advantages to making "tapecycle" > "runspercycle"?

Absolutely. For one, you might want to keep X weeks worth of backups, not 
just the previous week. I have a very simple scheme for instance that uses:

dumpcycle 1 weeks
runspercycle 5
tapecycle 10 tapes

Meaning I want to be sure to have a full dump of everything at least once a 
week (5 runs), and since I have 10 tapes, I should have two complete cycles 
on tape at any given time.

But think worst case (that's why you're doing backups, right?) -- if you 
only have tapecycle = runspercycle, when it comes time to use the "first" 
tape in the cycle again, you're overwriting what's on it, probably with a 
newer copy of the same stuff. If there's a tape error, you're screwed. If 
this happens in my cycle, I have the other dumpcycle worth of tapes to 
recover from. Though you're probably pretty safe with just one or two tapes 
more than runspercycle tapes (see below).

>If I have "tapecycle" at 6, and define 7 tapes in the tapelist, Amanda
>cycles through all 7 tapes, with a level 0 at a minimum of every 6 runs
>(every 7 days, in my case)?

You still want tapecycle to be the actual number of tapes (7). But 
runspercycle will only be 6.

If you had:
dumpcycle 1 weeks
runspercycle 6
tapecycle 7 tapes

..you might see something like this for a given host:
(the incrementals might go higher than 1, it's just an example)

Monday  tape1   level0
Tuesday tape2   level1
Wednesday   tape3   level1
Thursdaytape4   level1
Friday  tape5   level1
Saturdaytape6   level1
Sunday  (no backup)
Monday  tape7   level0
Tuesday tape1   level1
Wednesday   tape2   level1
...

Does that make any more (or less) sense?

Cheers.
--
Darin Dugan
[EMAIL PROTECTED]




Re: level 0 dumps getting overwritten?

2001-08-29 Thread Kurt Yoder

Darin Dugan wrote:
> 
> At 04:01 PM 8/28/2001, Kurt Yoder wrote:
> >Hello
> >My level 0 dumps seem to be getting overwritten. I run amadmin and see
> >only level 1 dumps:
> >[...]
> >Am I setting up my configuration file correctly? I've got:
> >
> >dumpcycle 7 days
> >runspercycle 6
> >tapecycle 2 tapes
> 
> So you're telling Amanda to make sure she has a full (level 0) backup of
> everything at least every 7 days, spread into 6 runs. But you're only
> giving her 2 tapes! *Buy more tapes!* Really.
> 
> >I've got a third tape in my tapelist so I can flush dumps from my
> >holding disk. I'm trying to do 6 backups every 7 days (the 7th day has a
> >weekly backup set that isn't part of this configuration) using two tapes
> >(alternate between them).
> 
> If you absolutely have to stick with two tapes, you pretty much need to do
> full dumps every run to be safe. (Take for instance the case where tape1
> has level0's, tape2 has level1's, you go to do level0's on tape1 again and
> there's an error and the tape is fubar'd. You've just lost all hope of a
> restore.) Use 'dumpcycle 0' in the dumptype to force level 0's.
> 
> >I must be setting up my "numbers" wrong, or?
> 
> Or you need more tapes!

Thanks for the info. I am probably still a bit foggy on the concepts
behind "dumpcycle", "runspercycle", and "tapecycle". 

Questions:

In my case, I _must_ use at least 6 tapes in order for amanda not to
overwrite any of its level 0 backups? 
If I wanted to use only 2 tapes, I would need to set "runspercycle" to
2? 
"tapecycle" must always be >= "runspercycle"? 
Are there any advantages to making "tapecycle" > "runspercycle"?
If I have "tapecycle" at 6, and define 7 tapes in the tapelist, Amanda
cycles through all 7 tapes, with a level 0 at a minimum of every 6 runs
(every 7 days, in my case)?



Re: level 0 dumps getting overwritten?

2001-08-28 Thread Darin Dugan

At 04:01 PM 8/28/2001, Kurt Yoder wrote:
>Hello
>My level 0 dumps seem to be getting overwritten. I run amadmin and see
>only level 1 dumps:
>[...]
>Am I setting up my configuration file correctly? I've got:
>
>dumpcycle 7 days
>runspercycle 6
>tapecycle 2 tapes

So you're telling Amanda to make sure she has a full (level 0) backup of 
everything at least every 7 days, spread into 6 runs. But you're only 
giving her 2 tapes! *Buy more tapes!* Really.

>I've got a third tape in my tapelist so I can flush dumps from my
>holding disk. I'm trying to do 6 backups every 7 days (the 7th day has a
>weekly backup set that isn't part of this configuration) using two tapes
>(alternate between them).

If you absolutely have to stick with two tapes, you pretty much need to do 
full dumps every run to be safe. (Take for instance the case where tape1 
has level0's, tape2 has level1's, you go to do level0's on tape1 again and 
there's an error and the tape is fubar'd. You've just lost all hope of a 
restore.) Use 'dumpcycle 0' in the dumptype to force level 0's.

>I must be setting up my "numbers" wrong, or?

Or you need more tapes!

>Thanks!
>-Kurt


Darin Dugan
System Support Specialist
Iowa State University Extension
[EMAIL PROTECTED]
http://www.extension.iastate.edu




level 0 dumps getting overwritten?

2001-08-28 Thread Kurt Yoder

Hello

My level 0 dumps seem to be getting overwritten. I run amadmin and see
only level 1 dumps: 

Dunedin# amadmin DailySet1 find dunedin
Scanning /usr/local/amanda/holdingdisk...
 
date   host   disklv tape or file file status
2001-08-25 dunedin.shcorp.com /dev/da0s1f  1 DS1tape01d  2 OK
2001-08-26 dunedin.shcorp.com /dev/da0s1f  1 DS1tape03   1 OK
2001-08-27 dunedin.shcorp.com /dev/da0s1f  1 DS1tape03   3 OK
2001-08-28 dunedin.shcorp.com /dev/da0s1f  1 DS1tape02   2 OK

Am I setting up my configuration file correctly? I've got:

dumpcycle 7 days
runspercycle 6
tapecycle 2 tapes

I've got a third tape in my tapelist so I can flush dumps from my
holding disk. I'm trying to do 6 backups every 7 days (the 7th day has a
weekly backup set that isn't part of this configuration) using two tapes
(alternate between them).

I must be setting up my "numbers" wrong, or?

Thanks!

-Kurt