Re: how to use tar with scp

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Friday, November 14, 2003, at 08:11 AM, Nitin wrote:
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

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux