How do I extract "tar -xvf /dev/rmt/0m" over a network to a remote server?
650908Oct 27 2008 — edited Nov 3 20081) 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 -