From: "Sameh Attia" <sameh.attia@xxxxxxxxxx>Here is a sample command u can issue to do this
tar -pcvf - /path | ssh <user>@<host> "(cd /path; tar -xf -)"
i'm using:
tar -pczf - /home/admin | ssh 10.10.10.6 "(cd /dump)"
but it isn't working. couldn't find what's wrong with it. could u please find?
You have the ssh command issuing a remote 'cd' command, but there is nothing
running at the other end to catch and process the stream of tar data being
produced at the source. Try this instead:
tar -pczf - /home/admin | ssh 10.10.10.6 "(cd /dump; tar -xf -)" ^^^^^^^^^^^ add this in
-- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list