On Thu, 14 Dec 2000, Dan wrote:
>That doesn't work.
>there isn't enough space on the drive to create the tar file.
>I need to pipe the tar command into ssh (or whatever)
>so the file is created on the remote server.
>
>someone said to use:
>tar cvf - | ssh remotehost | dd of=/home/dir/file | tar xvf -
What you need to do is run tar xf - (don't do it verbosely or it'll send the
verbosity on the line) on remotehost. What you wrote does this:
Send the tarball to remotehost, where it is run by the shell.
Copy the output of the shell on remotehost to /home/dir/file on localhost.
Attempt to interpret the stdout of dd (which tells how many blocks it copied)
as a tarball.
Try this:
tar cf - |ssh remotehost tar xf -
phma