Backup/Restore of raw devices
Date: Thu, 30 Jun 94 13:45:00 -0500
Message-ID: <12a.2992.905_at_compudata.com>
-> (Put in tape 1)
-> dd if=/dev/rdsk/c0t5d0s3 of=/dev/rmt/c0t3d0s0 bs=512k count=1000
-> (Put in tape 2)
-> dd if=/dev/rdsk/c0t5d0s3 of=/dev/rmt/c0t3d0s0 bs=512k skip=1000
-> count=1000
-> restore
-> -------
-> (Put in tape 1)
-> dd if=/dev/rmt/c0t3d0s0 of=/dev/rdsk/c0t5d0s3 bs=512k count=1000
-> (Put in tape 2)
-> dd if=/dev/rmt/c0t3d0s0 of=/dev/rdsk/c0t5d0s3 bs=512k skip=1000
-> count=1000
Nah. Serious problems here during the restore. The 2nd tape will attempt to skip the 1st 1000 record on the tape input, and then trash the beginning of your disk partition with whatever is left.
You need to use the SEEK or ISEEK (quicker) option for DD to seek to the end of the output.
Better yet, get a DAT. You will never be able to automate backups if you have to swap tapes. Received on Thu Jun 30 1994 - 20:45:00 CEST