Chris Lee wrote:
I have a set of tapes from a previous server, it is thought that there
may be some files on these tapes that are important.
I have created a similar config file to the one that existed on the old
server and am now wanting to update that config with the appropriate
database information.
What do I run to get the databases built from these tapes?
You want a Table of Contents of each tape (host, disk, level),
and you want an index if possible. Is that correct?
The amanda tapes are selfdescribing. They contain enough
information to be able to restore. But there needs to be a
human that interprets the info and then acts more or less
intelligent.
Currently there is no easy way to build an amanda-usable TOC or
index from tapes alone.
The best thing is try to restore the amanda home directory that did
contain all these things before.
It is explained in docs/RESTORE too, under the section
"5) Server machine fails, non-system critical, amanda disk, with db."
But I guess you don't have the "amadmin export" that they talk about.
Moreover, that "curinfo" database contains only the info of the
last dumpcycle. If your tapes cover more dumpcycles, then you'll
need the logfiles too.
For a table of contents (hosts, disk, level, date), use a shellscript
like this:
#!/bin/sh
TAPEDEV=</dev/nonrewindingtape>
while mt -f $TAPEDEV fsf 1 ; do
dd if=$TAPEDEV bs=32k count=1 | head -1
sleep 1
done
Or change the "head -1" to "tr -d '\0'" for even more information.
Once you find the previous amanda directory, restore that, and you'll
be ready to use the more userfriendly amrecover.
Thanks
Chris Lee
--
Paul Bijnens, Xplanation Tel +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUM Fax +32 16 397.512
http://www.xplanation.com/ email: Paul.Bijnens AT xplanation DOT com
***********************************************************************
* I think I've got the hang of it now: exit, ^D, ^C, ^\, ^Z, ^Q, F6, *
* quit, ZZ, :q, :q!, M-Z, ^X^C, logoff, logout, close, bye, /bye, *
* stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt, abort, hangup, *
* PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e, kill -1 $$, shutdown, *
* kill -9 1, Alt-F4, Ctrl-Alt-Del, AltGr-NumLock, Stop-A, ... *
* ... "Are you sure?" ... YES ... Phew ... I'm out *
***********************************************************************
|