but i do not want to extract it....... ----- Original Message ----- From: "Ken Rossman" <rossman@xxxxxxxxxxxx> To: <redhat-list@xxxxxxxxxx> Sent: Friday, November 14, 2003 6:58 PM Subject: Re: how to use tar with scp > 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 > -- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list