1832570 Members
5150 Online
110043 Solutions
New Discussion

remsh and tar

 
Daniel Ubeda
Frequent Advisor

remsh and tar

I have 1 server with 1 DLT drive, and I want to read a DLT tape with tar from another server without a DLT drive.
Someone known how do it with remsh or rcmd ?
Daniel
3 REPLIES 3
Jeff Machols
Esteemed Contributor

Re: remsh and tar

You should just be able to do a remsh server1 "tar -tf /dev/rmt/DTLNAME"

Santosh Nair_1
Honored Contributor

Re: remsh and tar

there are a couple of ways to do this...the easier is to use GNU's tar...which has support for remote tape devices:

gtar tvf server2:/dev/rmt/0m

The other option is to use something like:

remsh server2 cat /dev/rmt/0m | tar tvf -

Hope this helps.

-Santosh
Life is what's happening while you're busy making other plans
Bill Hassell
Honored Contributor

Re: remsh and tar

For casual data tranfers (a few megs), the remsh approach is probably OK. But since you mentioned DLT, if you're planning on full backups with gigabytes of data, I would be very cautious as the accuracy of massive data transfers with a simple pipe and no checksum verification is dubious at best. And of course, tar cannot backup large files.

A much better choice (for many more reasons) is Omniback, but you can also use the remote magtape features of fbackup too.


Bill Hassell, sysadmin