> tar cvf - | ssh remotehost | dd of=/home/dir/file | tar xvf -
> but somehow I don't think that works either.
Indeed -- too many errors to understand what is meant to happen ...
tar cvf - . | ssh remotehost "cd desitination/dir; tar xvpf -"
> One clue someone gave me is that you have to setup ssh so it doesn't
> prompt for a password.
Not so ....
% tar cf - . | ssh stives "cd /tmp; tar xvpf -"
./
./config
pb@stives's password:
./
./config
tar: .: Could not change access and modification times: Operation not permitted
tar: Error exit delayed from previous errors
% ls -l
total 4
-rw-r--r-- 1 xfs system 736 Mar 6 2000 config
% ssh stives ls -l /tmp/.
pb@stives's password:
total 2
-rw-r--r-- 1 pb user 736 Mar 6 2000 config
%