Hi Andy,
I had this same thing happen when I restored a Linux archive from a SGI
Amanda server. I restored it onto the SGI first and used the gtar
(version 1.13) that I compiled on the SGI to get the files out of the
archive.
I ended up doing:
rsh amanda_server "amrestore -p /dev/nrtape client_name sda7" | tar xv
This is with amanda of course but if you know that the tape file is just a
straight tar file you can do:
rsh amanda_server "mt rewind"
rsh amanda_server "mt fsf 1"
rsh amanda_server "dd if=/dev/rmt/0mn bs=32k skip=1" | tar xv
or if it was also gzipped:
rsh amanda_server "dd if=/dev/rmt/0mn bs=32k skip=1" | tar xzv
Steve
_____________________________________________________________
Steve Cousins Email: [EMAIL PROTECTED]
Research Associate Phone: (207) 581-4302
Ocean Modeling Group
School of Marine Sciences 208 Libby Hall
University of Maine Orono, Maine 04469
On Thu, 28 Mar 2002, Andy Zhang wrote:
> I was trying to restore a backup without the Amanda, here's what I
> did:
>
> # mt rewind
> # mt fsf 1
> # dd if=/dev/rmt/0mn bs=32k skip=1 | tar xvf -
> (it's backed up by gtar)
>
> It seems like I got all the saved files/directories, which were being
> extracted.. but they were organized differently. The diretories it
> created looked like:
>
> 7550524305 7450414032
>
> So, basically, a file looked like '74550524305 7550414032 /./scripts/driver'
> Each file has this preceeding directory. It's hard, if not impossible to
> access these directories to retrieve the files that I
> wanted. I tried not to '| tar xvf -', instead '> tarfile', and it still
> showed the same results by viewing the tarfile through 'tar -tvf'.
>
> Here is a little background information:
> -Backup Server, Solaris 8, Amanda 2.4.2-p2
> -Client, FreeBSD 4.5, Amanda 2.4.2-p2
> -Tape, DLT IV
> - both are using Gnu-tar, downloaded the source, and compiled on the
> server/client.
>
> Does anyone know anything about this? Thanks.
>
> -andy
>
>