Re: how to use tar with scp
From: Ken Rossman (rossman_at_columbia.edu)
Date: 11/14/03
- Previous message: Steve Gonzales: "Re: Monitor problem in RH9.0"
- In reply to: Nitin: "Re: how to use tar with scp"
- Next in thread: Nitin: "Re: how to use tar with scp"
- Reply: Nitin: "Re: how to use tar with scp"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: redhat-list@redhat.com Date: Fri, 14 Nov 2003 08:28:18 -0500
On Friday, November 14, 2003, at 08:11 AM, Nitin wrote:
> From: "Sameh Attia" <sameh.attia@tedata.net>
>> 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@redhat.com?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list
- Previous message: Steve Gonzales: "Re: Monitor problem in RH9.0"
- In reply to: Nitin: "Re: how to use tar with scp"
- Next in thread: Nitin: "Re: how to use tar with scp"
- Reply: Nitin: "Re: how to use tar with scp"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|