PDA

View Full Version : Amrecover on Samba Share?



steves
November 21st, 2006, 01:16 PM
I have "Amanda-2.5.0p2" running on a Fedora Core 4 server. I have used amrecover successfully, on Linux clients in the past but I'm hitting a wall today. I'm trying to recover a file from a Samba shared directory "//blanco/skovel".
amadmin shows the tape with level 0, to be daily118:
Current info for elpaso //blanco/skovel:
Stats: dump rates (kps), Full: 7859.0, 7900.0, 7893.0
Incremental: 10.0, 1.0, 10.0
compressed size, Full: -100.0%,-100.0%,-100.0%
Incremental: -100.0%,-100.0%,-100.0%
Dumps: lev datestmp tape file origK compK secs
0 20061115 daily118 19 9187758 9187770 1169
1 20061121 daily123 5 0 10 0
I loaded daily118 and ran amrecover.
amrecover> listdisk
200- List of disk for host elpaso
201- /d2/backups/sa/src
201 - [snip]
201- //blanco/a
201- //blanco/b
201- //blanco/skovel
201- //blanco/c

I don't seem to be able to setdisk to //blanco/skovel. (Samba share)
amrecover> setdisk //blanco/skovel
501 No index records for disk: //blanco/skovel. Invalid?

disklist entry:
elpaso //blanco/skovel nocomp-user-gnutar

I have indexing enabled in the global dumptype of amanda.conf:

define dumptype global {
comment "Global definitions"
index yes
}

I can however, set to local drive on server, "/d2/backups/sa/src" and us the commands.

Maybe amrecover isn't the way to recover this file?
What am I doing wrong?

Thank you,
Steve

ppragin
November 21st, 2006, 02:58 PM
If there is a problem with the index information you can also try using amrestore to recover the data. Here is the link:
http://wiki.zmanda.com/index.php/Amrestore

Pavel Pragin
Thanks

steves
November 22nd, 2006, 06:30 AM
If there is a problem with the index information you can also try using amrestore to recover the data. Here is the link:
http://wiki.zmanda.com/index.php/Amrestore

Pavel Pragin
Thanks

I tried this morning and here is what happens:

The tape reported in amadmin to have the 0 level backup is "daily118".
0 20061115 daily118 19 9187758 9187770 1169
I loaded daily118 and ran the following commands...

[root@elpaso restore]# amrestore -p /dev/tape you > /dev/null
amrestore: missing file header block
amrestore: 2: skipping elpaso._d2_backups_sanantonio_root.20061115.1
amrestore: missing file header block
amrestore: 7: skipping jrlinux._home.20061115.2
amrestore: 10: reached end of information

-does not find what was reported by amadmin.
I tried to using mt to step through the different volumes. Still didn't find it.
I loaded the other 5 tapes in that magazine and ran the amrestore command. It did not find the backup on any tape.

What can I try next?