> 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
>> command to ssh.
> If all you need is somthing at the other end capturing the data try
> ... | ssh remotehost "cat - > myfile"
Remember though, that the remote file will be a tarball itself. Here
is the command I use frequently, to get exactly what you want...a
tarball of a local file system on a remote machine:
# tar -cvzf - /home/steve | ssh [EMAIL PROTECTED] 'cat > tarball.tar.gz'
> greetz Joost
> [EMAIL PROTECTED]
> [EMAIL PROTECTED] mailing list
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"
[EMAIL PROTECTED] mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"