Amanda-Users

Re: Amanda unable to use amrecover ssince dumptype change for a New Monthly back up as well as Daily.

2005-09-06 11:27:10
Subject: Re: Amanda unable to use amrecover ssince dumptype change for a New Monthly back up as well as Daily.
From: Jon LaBadie <jon AT jgcomp DOT com>
To: amanda-users AT amanda DOT org
Date: Tue, 6 Sep 2005 11:18:27 -0400
On Tue, Sep 06, 2005 at 03:07:54PM +0100, Chuck Amadi Systems Administrator 
wrote:
> Hi I had a monthly and daily script that checked if it was last friday
> of the month.
> Thus it reverts back to daily config after amcheck notes that a monthly
> tape is still in the server thus I have since the first monthly tape was
> used to backup I have been using daily tape thus data that We used on
> the friday last was a daily but when I try amrecover it doesn't tell
> which tape use for the date. I did change the dumptype paremeter from
> default "yes" TO no So I may have mos configured but the fact that
> amdump made a back up of that date I still believed I could still get
> that date data back using amrecover.
> 
> Thus is there away say using amadmin to get data by the a way inserting
> that date tape.
> 
> Cheers
> 
> On Tue, 2005-09-06 at 09:22 -0400, Jon LaBadie wrote:
> > On Tue, Sep 06, 2005 at 01:28:25PM +0100, Chuck Amadi Systems Administrator 
> > wrote:
> > > Hi I have just recently included a monthly backup script whereby I was
> > > advised to amend the parameters of dumptype {
> > >                            recored no
> > >                            }
> > > Thus as default was set to yes I would cause amanda confusion.
> > > Also when I tried a amrecover exercise I am now unable to recover.
> > > Basically where previously I would be told what tape to put into the
> > > server after I set 
> > > setdate yyyy-mm-dd as below I was told which tape to use "Not Now"
> > > 
> > > I get Setting restore date to today But I want data from last Friday
> > > which as a exercise was backed up and today we deleted the data for the
> > > test but of cause I am unable to put the correct tape in. So if possible
> > > has anyone any ideas as the only thing I can think of is the parameter I
> > > changed.
> > > 
> > > root@myserver:/ # amrecover -s myserver.smtl.co.uk -t
> > > myserver.smtl.co.uk
> > > 
> > 
> > If I recall correctly your monthly backup used a new amanda config.
> > 
> > Did you tell amrecover to use that new config rather than your default?
> > 


<soapbox>
Top posting is such a pain in continuing a conversation.
</soapbox>

Chuck, your old posts showed this in your scripts:

        if ...
        then  su -c "/usr/sbin/amcheck MonthlySet"
        else  su -c "/usr/sbin/amcheck DailySet1"

So you are using two amanda configs, have two sets of logs,
have two sets of indexes.  One is the default, DailySet1.

Guess which of the two configs, logs, and indexes this amrecover
command that you showed us tries to use?

> root@myserver:/ # amrecover -s myserver.smtl.co.uk -t myserver.smtl.co.uk

The default of course, you did not tell it any different.

Unless I missed something as I did in earlier posts today :)

-- 
Jon H. LaBadie                  jon AT jgcomp DOT com
 JG Computing
 4455 Province Line Road        (609) 252-0159
 Princeton, NJ  08540-4322      (609) 683-7220 (fax)