Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Aug 2004 13:51:27 +0200
From:      Joost Bekkers <joost@jodocus.org>
To:        Roger Merritt <mcrogerm@stjohn.ac.th>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Back-up on remote machine
Message-ID:  <20040805115127.GA64666@bps.jodocus.org>
In-Reply-To: <5.2.0.9.0.20040805174307.00a0a970@127.0.0.1>
References:  <5.2.0.9.0.20040805174307.00a0a970@127.0.0.1>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Aug 05, 2004 at 05:58:24PM +0700, Roger Merritt wrote:
> One example I found on the WWW is: tar -czf - /some/file | \
> ssh host.name tar -xzf - -C /destination.
> 
> That's not quite what I want, because I don't see any need to untar 
> everything at the far end, but I can't send a file without using some 
> command to ssh.

If all you need is somthing at the other end capturing the data try

... | ssh remotehost "cat - > myfile"

-- 
greetz Joost
joost@jodocus.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040805115127.GA64666>