Amanda-Users

Re: Restoring windows partition written using smbclient

2006-06-07 09:45:40
Subject: Re: Restoring windows partition written using smbclient
From: Paul Bijnens <paul.bijnens AT xplanation DOT com>
To: John Clement <john.clement AT readingroom DOT com>
Date: Wed, 07 Jun 2006 15:39:37 +0200
On 2006-06-07 15:23, John Clement wrote:
I'm trying to restore the contents of

AMANDA: FILE 20060601 orinoco.deanst.rroom.net
//tlswindev1.deanst.rroom.net/e$ lev 0 comp .gz program
/usr/bin/smbclient

However I don't know how to get this off the tape into a usable format.

The first 32K block of the file on tape contains the instructions.

Have you read:

http://wiki.zmanda.com/index.php/Restoring_files

Especially the secion about restoring with "amrestore".
The windows tar is compatible with gnutar, so to restore on the
server itself, just use gnutar.




It was generated from the DLE

orinoco.deanst.rroom.net        //tlswindev1.deanst.rroom.net/e$
comp-root-tar-win

And from amanda.conf

define dumptype comp-root-tar-win {
    root-tar
    comment "Root partitions with compression"
    compress client fast
    index
    #exclude list "/var/lib/amanda/exclusions.txt"
}

I need to restore it to the amanda server as I'm still trying to
reinstall 'tlswindev1' after its only disk (yes, I know, when its
replaced I'll be insisting on RAID) died last night, and I can't afford
the network traffic (the dump to tape should be about 30GB).

Something like this should work (untested):

# cd /space/tmp              # somewhere with enough free diskspace
# mt -t /dev/st0 rewind      # fill in your tape device
# amrestore -p /dev/nst0 orinoco.deanst.rroom.net '//tlswindev1.deanst.rroom.net/e\$' |
gtar --numeric-owner -xpvf -



--
Paul Bijnens, xplanation Technology Services        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, *
* init 0, kill -9 1, Alt-F4, Ctrl-Alt-Del, AltGr-NumLock, Stop-A, ... *
* ...  "Are you sure?"  ...   YES   ...   Phew ...   I'm out          *
***********************************************************************


<Prev in Thread] Current Thread [Next in Thread>