--On Thursday, December 14, 2000 5:14 PM -0500 Dan <[EMAIL PROTECTED]> wrote:

> Ok, this is driving me crazy, I want to tar a bunch of dirs/files/etc and
> port it through ssh on linux.
>
> I tried tar -cvf - | ssh [EMAIL PROTECTED]

OK, if you actually know what you're doing and just had e-mail damage, I 
apologize in advance for the basic nature of this message.

The above command does _nothing_. You're saying:

Run tar, create a new archive on stdout, and be verbose. Add no files to 
the archive. Send the output to the ssh command, which will run a shell on 
the remote box.

What I _think_ you meant to do was:

tar -cvf - myfile1 myfile2 myfile3 | ssh user@remotehost "cat >foo.tar"

You can use dd to get some buffering and improve performance, but you 
shouldn't need it.

-- 
Carson Gaspar -- [EMAIL PROTECTED]
Queen Trapped in a Butch Body

Reply via email to