Operating System - HP-UX
1834152 Members
2728 Online
110064 Solutions
New Discussion

extract tar files from a remote host to a local host

 
Paul Doyle
Occasional Contributor

extract tar files from a remote host to a local host

I need help extracting tar files from a remote host's DLT tape drive to a local host that doesn't have a DLT drive. I've set up the /etc/hosts.equiv and /.rhosts files with each others IPs with root as the permitted user. Both systems run HP-UX 11.0. I can remsh mt commands to status, rewind, and offline the drive. I think I'm not sequencing the tar and pipe statements correctly.

I thank you in advance for your assistance.
Paul Doyle
4 REPLIES 4
Steven Sim Kok Leong
Honored Contributor

Re: extract tar files from a remote host to a local host

Hi,

Off my head, the syntax is like this:

# remsh host -l user "tar xvf /dev/rmt/2m -"

Hope this helps. Regards.

Steven Sim Kok Leong
Steven Sim Kok Leong
Honored Contributor

Re: extract tar files from a remote host to a local host

Hi,

You can also use rmt. I am sure you can use fbackup and frestore for remote tape archival:

# fbackup host:/dev/rmt/2m ...

But I am so sure about HP-UX's tar. But, if you install and use GNUtar however, you can make use of rmt:

# tar xvf host:/dev/rmt/2m

Hope this helps. Regards.

Steven Sim Kok Leong
Satish Y
Trusted Contributor

Re: extract tar files from a remote host to a local host

Hi Paul,

# cd
dir - directory u wish to extract

# remsh dd if= ibs=32 obs=32 | tar xvf -

Cheers...
Satish.
Difference between good and the best is only a little effort
Steven Sim Kok Leong
Honored Contributor

Re: extract tar files from a remote host to a local host

Hi,

Try this instead:

# remsh host -l user "dd if=/dev/rmt/2m" | tar xvf -

Hope this helps. Regards.