Strange SSH with rsync
Dave Markham
dave.markham at fjserv.net
Wed Feb 21 17:49:10 GMT 2007
Has anyone any idea why this wont work? Its in a script and im passing
-e "${SSH}" to the Rsync command where :-
SSH="$(/usr/bin/which ssh) -o ConnectTimeout=15 -o BatchMode=yes -n"
The below is output from set -x for my script. Below that is the error
from errorlog
/usr/bin/rsync -PavRz --delete --delete-excluded --copy-unsafe-links
--numeric-ids -e /usr/bin/ssh -o ConnectTimeout=15 -o BatchMode=yes -n
<user>@<host>:/tmp/davefile2 /dir/remote_backups/<host>
+ 1>> /dir/log/<host>.<function>.errorlog.210207-17h41m.log 2>>
/dir/log/<host>.<function>.errorlog.210207-17h41m.log
Error :-
Staring get of [/tmp/davefile2]
rsync: connection unexpectedly closed (0 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(165)
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(463)
[receiver=2.6.8]
More information about the rsync
mailing list