Re: scp to pipe

From: Patrick Lapre (patrick_lapre_at_palletways.com)
Date: 09/16/04

  • Next message: pippo: "extremely slow connection"
    Date: Thu, 16 Sep 2004 09:01:16 +0100 (BST)
    To: "Mauricio Araya V." <mauricio@hostarica.com>
    
    
    

    Hallo!

    This would be futile anyway.
    There is a reason why the usage of tar and scp.

    In reference of below, that should work fine or simply choose for a scp
    without the tar e.g

    scp -prv /path/to/my-files user@remote-host:~/path/to/

    Could somebody explain me the explicit use of the pipe, scp and tar?

    Cheers Pat

    On Sep 13, 2004 07:30 PM, Mauricio Araya V. <mauricio@hostarica.com>
    wrote:

    > Hi there!
    >
    > On Sat, 2004-09-11 at 03:49, hlaguy wrote:
    > > How can scp write to a pipe that tar could then process?
    >
    > Why scp?
    >
    > It's not all clear fot me, but i think you may want this:
    >
    > % tar czf - /path/to/my-files | ssh remote-host "cat > my-files.tgz"
    > or
    > % tar czf - /path/to/my-files | ssh remote-host tar xzf -
    >
    > Regards,
    >
    > -Mauricio

    
    


  • Next message: pippo: "extremely slow connection"

    Relevant Pages

    • Re: Extending Expiration Date of an Already-Expired GPG Key
      ... When I return home from my trip I then tar up the .thunderbird directory ... on the laptop and scp it back to the desktop. ...
      (Fedora)
    • Re: scping 250,000 files
      ... I would prefer to use scp. ... The general solution is to use find, pipe though tar, pipe to ssh ... on the remote machine, change dir and use tar to unpack on the ...
      (comp.unix.shell)
    • Re: SCP problem -
      ... /home/bobg/ on box8 to an external USB 500G hard drive. ... hard drives get mounted under /media, ... Since scp follows symbolic links (read about -r option in ... first created a .tar file of the source, and then scp the .tar over to ...
      (Fedora)
    • scp to pipe
      ... How can scp write to a pipe that tar could then process? ... I can't think of a way to tell scp to write to pipe instead of a named file. ...
      (SSH)
    • Re: scp to pipe
      ... But you dont get anything else from stderr either. ... > How can scp write to a pipe that tar could then process? ... > I can't think of a way to tell scp to write to pipe instead of a named file. ...
      (SSH)