Amanda-Users

Re: Using amrestore

2004-01-07 11:40:22
Subject: Re: Using amrestore
From: "fgarcia AT cie.com DOT mx" <fgarcia AT cie.com DOT mx>
To: Dean Pullen <dean.pullen AT virtuefusion DOT com>
Date: Wed, 07 Jan 2004 10:36:32 +0000
If it is a dump file you could type

restore -f webserver04._dev_sda3.20040107.0 -x<whatever directory you would like 
to extract>

Dean Pullen wrote:

Yes I receive a few messages (when not using the pipe flag)

I also get a webserver04._dev_sda3.20040107.0 file within the working
directory. Which is obviously what I'm retrieving from the tape drive.

So what do I do with this file?

-----Original Message-----
From: Paul Bijnens [mailto:paul.bijnens AT xplanation DOT com] Sent: 07 January 2004 15:52
To: Dean Pullen
Cc: amanda-users AT amanda DOT org
Subject: Re: Using amrestore

Dean Pullen wrote:

Using just:
amrestore /dev/nst0 webserver04

Everything seems to complete with no visible errors.
How do I make sure that 'webserver04' /dev/sda3 (the partition I backed
up)
has now been restored?!

First read the man page, and look at the examples in it.
"amrestore" itself does not restore your disk.  It just pulls
the image from the tape and stores it in the current directory
(or with -p pipes it to stdout).  You need to restore it with
restore or gnutar, whichever program you used to make the backup.

While reading the tape, it show messages for all the images skipped,
and it shows a message when it extract the image(s) for webserver04.
Did you see any message like that?

One important point is that you need to REWIND the tape before starting
amrestore, or you need to MANUALLY position the tape to the beginning
of your backup image using commands like 'mt ... fsf 123'.
If using amanda 2.4.4 or later you may add "-f 123" to rewind and
skip forward automatically (using the correct number...)