1845805 Members
4217 Online
110250 Solutions
New Discussion

copy tape to tape

 
SOLVED
Go to solution
federico_3
Honored Contributor

copy tape to tape

How to copy the WIN NT informations stored on a tape on another tape using devices ( DLT , autoloader ) installed on UNIX (11 or 10.20 ) machines ?

Federico
2 REPLIES 2
John Palmer
Honored Contributor
Solution

Re: copy tape to tape

You can copy one tape to another with the dd command but be aware of the following:-

The blocksize that you supply to dd (bs=???) must be >= the largest block size on the input tape otherwise data will be lost.

The tape may contain more than one data file so you have to repeat the dd command until it fails because it's run off the end of the input tape.

So you need a script that does the following:-



while true
do
dd if= of= bs=128k
if [[ $? -ne 0 ]];
then break
fi
done

Note that the 128k ought to be big enough for most tape blocksizes.

Regards,
John
James R. Ferguson
Acclaimed Contributor

Re: copy tape to tape

Hi:

Take a look at the man pages for 'dd'. Try:

dd if=/dev/rmt/0m bs=1024 of=/dev/rmt/1m bs=1024

...JRF...