PDA

View Full Version : amrestore - HELP!


richard.bessey
January 15th, 2007, 03:45 PM
All,
Hopefully someone can point out my obvious mistake.

I have had amanda running for almost two years now, a couple bugs along the way but nothing too horribly serious untill recently.

amrecover has never worked for me, so I have always been running amrestore.
We have done restores successfully with no problems. The other day I was asked to restore a file that was buried deep inside sub folders, no problem. First I find the right tape, get it loaded and run:
amrestore /dev/nst0 host.domain.com /folder/subfolder1/subfolder2
and it takes off going through the tape and finds the backup I need, and writes a dump file to my hard disk.
Excellent, so far so good.

Now, I tar -xf the file and I find every directory created, but no documents, anywhere. Am I doing something wrong, did I screw up in my config file somewhere?

Technical details:
amanda is running on a dell poweredge 1650 running FC4, installed via yum
VXA-2 Packet 1X10 with 10 tapes, labled and ready to roll

disklist.conf
host.domain.com /folder/subfolder1/subfolder2 comp-user-tar

Can someone point out my mistake or tell me what I may have done wrong?

Thanks

Richard

ktill
January 15th, 2007, 06:36 PM
Hi,

what is the name of the tar file produced by amrestore?
I has the syntax of
hostname.diskname.datestamp.dumplevel

I suspect you got the incremental dump tar file.

Kevin Till
Zmanda

richard.bessey
January 16th, 2007, 11:17 AM
I am running amanda version 2.4.5
It was my understanding that version of Amanda doesn't do incramentals, am I wrong?

Currently getting a restore right now, will have filename for you shortly

richard.bessey
January 16th, 2007, 11:26 AM
OK, this restore has nothing but folders in it, no documents to speak of
boxname.domain.com._folder_subfolder1_subfolder2.2 0061230.2

Does the .2 mean its a incramental?

Richard

ppragin
January 16th, 2007, 11:43 AM
It looks like this is an incremental backup that you have on this tape. What you need to do is find the tape that has the last full backup on it. I suggest using this command to do this:
amadmin AmandaConfigName find host.domain.com

This should give you the list of all the backups that have been done for this host, including backup level and tape names and dates. You can then find the most recent full and restore from that tape.

Thanks

richard.bessey
January 16th, 2007, 12:58 PM
That makes total sense!

One quick question though, I run amadmin and it s***** out a bunch of info about what tapes and where everything is. How do I know where the last full backup is???

Richard

ppragin
January 16th, 2007, 01:03 PM
Example:
date host disk lv tape or file file part status
2007-01-05 18:00:01 sha.anda.com /home 1 Daily-5 2 -- OK
2007-01-08 18:00:01 sha.nda.com /home 1 Daily-6 1 -- OK
2007-01-12 18:00:01 sha.nda.com /home 0 Daily-7 1 -- OK
2007-01-15 18:00:01 sha.nda.com /home 0 Daily-8 1 -- OK

The last Full backup here is on "2007-01-15". "lv" stands for Level and Level 0 is full and then you find the most recent day.