Joshua D. Bello wrote:

I am attempting to copy from one tape to another using dd, and getting the following results:

[15:37:[EMAIL PROTECTED]:/local0/tmp# dd bs=32k if=/dev/rsa1 of=/dev/rsa0
1+0 records in
1+0 records out
32768 bytes transferred in 1.628442 secs (20122 bytes/sec)

This is just as expected. You just copied the amanda header over, you still need to loop over all the other files too.

Each DLE is put as a separate file on tape. The very first file
on tape is the tape header. You can read each tape using the non-rewinding device and keep on reading with dd.


Something (untested) like this would work (asuming /dev/nrsa* is
the nonrewindig device on your OS):

while dd bs=32k if=/dev/nrsa1 of=tmp-file
do  dd bs=32k if=tmp-file of=/dev/nrsa0
    echo =======
done; rm tmp-file

And you have to verify if the blockcounts that get written to tape
match up with the counts from the previous reads.


[15:46:[EMAIL PROTECTED]:/local0/tmp# amrestore /dev/rsa1

I believe you think that the first argument is the tapedevice. No. The tapedevice can be optionally specified after the -h option. The first non-option arg of amrestore is the hostname you want to restore (default, all dle's for that hostname).


Could I use amrestore -r and then dd the raw output onto the new tape?
Thanks for any ideas/assistance that anybody can provide!

Just like above, but then you'll need much more diskspace.




--
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:  [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, *
* kill -9 1,  Alt-F4,  Ctrl-Alt-Del,  AltGr-NumLock,  Stop-A,  ...    *
* ...  "Are you sure?"  ...   YES   ...   Phew ...   I'm out          *
***********************************************************************




Reply via email to