Thanks for all the help, but I have a problem to restore the files.
When I type:
root@ # dd if=/dev/rmt/0n ibs=64k | ufsrestore if -
I recieve the following error message:
read: Invalid argument
0+0 records in
0+0 records out
Volume is not in dump format
But as far as I know it should be in a dump format!!! because in the Amanda.conf I defined the backup as:
When I type:
root@ # dd if=/dev/rmt/0n ibs=64k | ufsrestore if -
I recieve the following error message:
read: Invalid argument
0+0 records in
0+0 records out
Volume is not in dump format
But as far as I know it should be in a dump format!!! because in the Amanda.conf I defined the backup as:
define dumptype daily {
global
# program "DUMP" # the default
# record yes # the default
comment "daily"
compress client fast
priority high
# dumpcycle 5 # should be obtained from dumpcycle above
index yes
}
I also tried the following:
% mt -f /dev/rmt/0n rewind
% dd if=/dev/rmt/0n of=/tmp/data bs=64k count=2
% od -c /tmp/data | head
And received the following output:
0000000 \0 002 P 022 \0 \f \0 001 . \0 \0 \0 \0 003 242 Q
0000020 \0 \f \0 002 . . \0 \0 \0 002 P 023 001 350 \0 006
0000040 n e w b c k \0 \0 \0 \f \0 003 b c k \0
0000060 \0 \0 \0 \0 001 320 \0 006 n e w b c k \0 \0
0000100 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0
*
0001000
Can one deduct the dump format from the above output?
Many thanks,
gil
Paul Bijnens <[EMAIL PROTECTED]> wrote:% mt -f /dev/rmt/0n rewind
% dd if=/dev/rmt/0n of=/tmp/data bs=64k count=2
% od -c /tmp/data | head
And received the following output:
0000000 \0 002 P 022 \0 \f \0 001 . \0 \0 \0 \0 003 242 Q
0000020 \0 \f \0 002 . . \0 \0 \0 002 P 023 001 350 \0 006
0000040 n e w b c k \0 \0 \0 \f \0 003 b c k \0
0000060 \0 \0 \0 \0 001 320 \0 006 n e w b c k \0 \0
0000100 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0
*
0001000
Can one deduct the dump format from the above output?
Many thanks,
gil
On 2006-07-19 17:35, gil naveh wrote:
> Thanks for the help.
> I am familiar with the Amrestore command.
Then you understand that you can replace "amrestore" with a
"mt" and "dd".
> But the problem I am facing is that the Amanda server which also holds
> other applications crushed. So I have to restore data from another
> server - I have Solaris 9 and and or Solaris 10 servers that I can
> connect to the tape drive...
> I also saved the configuration files of the amanda server.
> Is there a way to directly connect to the tape drive and use unix
> commands to restore data from it?
> Or any other suggestions...
mt -f /dev/rmt/0n fsf 34
dd bs=32k if=/dev/rmt/0n skip=1 of=/some/where
dd to to stdout, in a pipe with netcat:
... | nc -w 1 client 1234
And on the client you have already this command listening:
nc -l -p 1234 | gtar -zxpGvf -
The docs in http://www.amanda.org/docs/restore.html
are a little more expanded, giving more examples in:
http://wiki.zmanda.com/index.php/Restoring_files
Easiest is to first restore the amanda command "amrestore"
That one does not need any config file at all.
--
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: [EMAIL PROTECTED]
***********************************************************************
* 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 *
***********************************************************************
