Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How do I extract "tar -xvf /dev/rmt/0m" over a network to a remote server?

650908Oct 27 2008 — edited Nov 3 2008
1) I know how to extract:

tar -xvf /dev/rmt/0m --> This gets me my files. The problem is I have no space....

2) I know I can do this from ServerA to ServerB:

On ServerA

tar -xvf /dev/rmt/0m | ssh ServerB

3) I want to direct the location the files are extracted to:

This does not work

---> tar -xvf /dev/rmt/0m ServerB | ssh /dirname/

I get an error. Am I missing quotes or anything?

This is something that I found, I have dump files in my tar not "tar.gz", and I am trying to go the reverse direction from serverA to ServerB with the extract..... This example takes me to ServerA and extracts the specified file..I can imagine...

# ssh root@192.168.1.201 "cat /backup/wwwdata.tar.gz" | tar zxvf -
This post has been answered by 653835 on Oct 28 2008
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 1 2008
Added on Oct 27 2008
5 comments
1,814 views