1845896 Members
4017 Online
110250 Solutions
New Discussion

Copy DLT to DLT

 
augusto cossa
Frequent Advisor

Copy DLT to DLT

Good day,

Is there anyone who knows if it's possible to copy from one DLT to ohter? My I use rcp -p host1:path host2:path?

Help on it.

Thanks,

Augusto
6 REPLIES 6
Lasse Knudsen
Esteemed Contributor

Re: Copy DLT to DLT

No, you can't do it that way.

I would suggest something like:

On host1:

dd if=/dev/rmt/ ibs=20b obs=1b | remsh host2 dd of=/dev/rmt/ ibs=1b obs=20b

You need to have your hosts.equiv .rhosts file set up properly in order to use remsh.

The block size (20b) is good for "normal" tar and cpio archives but with different formats you might have to use another block size.
In a world without fences - who needs Gates ?
Carlos Fernandez Riera
Honored Contributor

Re: Copy DLT to DLT


Tar, cpio , dd ... use differents blocks size so you must use correct block size for each command.

By default tar uses 10K ( 20b)
By default cpio uses 512 bytes (1b) unless you had used -B option ( 5k)

If you are trying to duplicate a make_recovery tape first block on tape is 2k.

Blocks must be the same in each tape so:

tar:
dd if=/dev/rmt/ bs=10k | remsh host2 dd of=/dev/rmt/ bs=10k

and so on for each block in tape.

Validate that duplicate tape is readable.




unsupported
John Palmer
Honored Contributor

Re: Copy DLT to DLT

Augusto,

dd is the utility that you need to use but you must ensure that the blocksize used (bs= argument) is greater than any block size that exists on the tape. If you don't then data will be lost .

You also need to cater for the fact that there may be more than one file on the DLT tape.

Regards,
John
Rick Garland
Honored Contributor

Re: Copy DLT to DLT

Use the dd command. This will pick up all tracks and transfer them the new DLT tape
Tom Danzig
Honored Contributor

Re: Copy DLT to DLT

If you are refering to tapes created with Omniback, you can use the omnicp command to copy DLT tapes.
박수정
Advisor

Re: Copy DLT to DLT

HI!

Use This Command

# dd if=/dev/rmt/0mn bs=1024 | remsh remote_hostname dd of=/dev/rmt/0mn bs=1024

Edit file on remote server

# vi $HOME/.rhost

198.254.xxx.xxx user_name

# vi /etc/in

shell stream tcp nowait root -
/usr/lbin/remshd remshdetd.conf

# inetd -c