Re: how to use tar with scp

From: Ken Rossman (rossman_at_columbia.edu)
Date: 11/14/03

  • Next message: Nitin: "Re: how to use tar with scp"
    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
    

  • Next message: Nitin: "Re: how to use tar with scp"

    Relevant Pages

    • Re: how to mail an attachment from linux shell
      ... You could use pine from the command line with the -attach option. ... Nitin wrote: ... Voice: 310 448-7763 ...
      (RedHat)
    • Re: finding USB camera using kdf and lsmod, etc
      ... was told command not found. ... > We expressly refuse to utilise Microsoft DRM ... Try the all-new Yahoo! ... -- redhat-list mailing list unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe ...
      (RedHat)
    • Re: cd mount
      ... May be write this command ... And in Linux have a many function fs* use this functions. ... James ... -- redhat-list mailing list unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe ...
      (RedHat)
    • Re: kernel installation & module dependencies?
      ... Use the "ln" command to link the 2 directories. ... module-info and your link will point from this directory to ... Help STOP SPAM with the new MSN 8 and get 2 months FREE* ... Messenger now for a chance to WIN Robbie Williams "Live At Knebworth DVD" -- redhat-list mailing list unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe ...
      (RedHat)
    • RE: Postfix error
      ... >> postfix error before. ... >> highlighted source. ... > command from a command line to see what it is or isn't doing. ... -- redhat-list mailing list unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe ...
      (RedHat)