If you want to tar some files and use ssh to copy the tar file to another
machine:
tar cf - sourcefiles | ssh othercomputer 'cat > /path/to/tarfile.tar'
If you want to tar some files and use ssh to untar them on another
machine:
tar cf - sourcefiles | ssh othercomputer 'cd /path/to/put/files; tar xvf
-'
Holger Klawitter wrote:
> > I tried tar -cvf - | ssh [EMAIL PROTECTED]
>
> I tried
> tar -cvf - sourcefiles | scp - [EMAIL PROTECTED]
> which would be prepared for password handling etc.
>
> Unfortunately scp does not support neither "-" nor "/dev/stdin".
> Would that hard to implement into the next version?
>
> With kind regards / Mit freundlichem Gru�
> Holger Klawitter
> --
> Holger Klawitter
> [EMAIL PROTECTED] http://www.klawitter.de
--
PETER SCHWENK | Campus IT Associate 3
Department of Mathematical Sciences | University of Delaware
[EMAIL PROTECTED] | (302)831-0437