: I have date backup from UNIX sys V to tape using commands
: find / -print | cpio -oucvdB > /dev/rmt0 (SVR 4)
: or
: find / -print | cpio -oucvdB > /dev/ctape (on UNIXWARE 2.0)
: I am trying to restore the tape on SUN OS 4.1.3 using command
: cpio -itB < /dev/rst0 or (/dev/rst8) Check for the contents of tape.
: cpio -it < /dev/rst0 or (/dev/rst8)
: Both commands give me the error:
: cpio : this is not a cpio file: bad magic number.
: I am not sure what wrong with it. Is it other options that I need to turn on.
: Have anyone had backup on SVR4 and restore on SUN OS ????
: Thanks for any comment or suggestions.
Without knowing too much about either machine, I guess that you failed because:
* you didn't supply the appropriate "c" option to the cpio restore.
* or that the data bytes have been swapped. The "magic number" for cpio is
the character string "070707" at the very beginning of the archive file,
and if cpio doesn't see this, it will not recognize the archive as its own.
To determine: grab a few raw records from the tape:
$ dd if=/dev/rst8 count=1 | more
if the data look "weird", investigate the "swab" option of "dd" to reorder.
* If memory serves, the "blocking factor" for a /dev/rmt8 device on a Sparc
is 20. The blocking number has to match between the source and destination
machines, I believe. Again, use "dd" to grab the data, and let "cpio" have
at it from the *file* created, not the *tape device*.
send me e-mail to tell me if any one of these methods have brought you success.