Amanda-Users

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

2005-09-06 12:07:19
Subject: Re: Amanda unable to use amrecover ssince dumptype change for a New Monthly back up as well as Daily.
From: Chuck Amadi Systems Administrator <chuck AT smtl.co DOT uk>
To: amanda-users AT amanda DOT org
Date: Tue, 06 Sep 2005 16:55:05 +0100
Hi again

I have run the following :

root@myserver:/ # amrecover DailySet1 -s myserver.smtl.co.uk -t
myserver.smtl.co.uk
AMRECOVER Version 2.4.4p2. Contacting server on nemesis.smtl.co.uk ...
220 nemesis AMANDA index server (2.4.4p2) ready.
200 Access OK
Setting restore date to today (2005-09-06)
200 Working date set to 2005-09-06.
Warning: no log files found for tape SMTLSet109 written 2005-08-25
Warning: no log files found for tape SMTLSet108 written 2005-08-24
Warning: no log files found for tape SMTLSet107 written 2005-08-23
Warning: no log files found for tape SMTLSet106 written 2005-08-22
Warning: no log files found for tape SMTLSet105 written 2005-08-22
Scanning /dumps/amanda...
  20050707: found Amanda directory.
  20050713: found Amanda directory.
  20050714: found Amanda directory.
  20050829: found Amanda directory.
  20050905: found Amanda directory.
200 Config set to DailySet1.
501 Host myserver is not in your disklist.
Trying host myserver.smtl.co.uk ...
200 Dump host set to myserver.smtl.co.uk.
Trying disk / ...
$CWD '/' is on disk '/' mounted at '/'.
200 Disk set to /.
/
amrecover> setdate 2005-09-02
200 Working date set to 2005-09-02.
amrecover> ls
amrecover> cd backup
amrecover> ls

The test-recovery file doesn't now exist I have the correct tape that
was used from last friday and I expected to be able to extrat previous
test a file exist and when a run add and extract it promted me to put
the tape in have I missed something as I am aware that the test-recovery
file doesn't exist except for on the SMTLSet103 tape that's currently in
the tape server.

Cheers



On Tue, 2005-09-06 at 11:18 -0400, Jon LaBadie wrote:
> 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 :)
> 
-- 
Unix/ Linux Systems Administrator
Chuck Amadi
The Surgical Material Testing Laboratory (SMTL), 
Princess of Wales Hospital 
Coity Road 
Bridgend, 
United Kingdom, CF31 1RQ.
Email chuck.smtl.co.uk
Tel: +44 1656 752820 
Fax: +44 1656 752830