post image

Cygwin RSYNC ssh hang in "pull" mode

Mar 27, 2008 Gethugothemes

I’m trying to workaround cygwin hanging when using rsync over ssh in a “pull” mode. I used to have it set up to where each box would “push” to a central server. It was irritating in that I had to keep a script for each box and it’s own cron job. So I changed to “pull” mode, and keep getting I/O timeouts .

Now I am going to try the following:
1) Run rsync in daemon mode on the multiple boxes:

cygrunsrv –install “rsyncd” –path /usr/bin/rsync –args “–daemon –no-detach” –desc “Starts a rsync daemon for accepting incoming rsync connections” –disp “Rsync Daemon” –type auto

2) In cron script create an ssh session with port forwarded:
ssh -f [email protected] -L 8730:192.168.x.x:873 sleep 10

3)Run rsync command to “pull” from boxes via central server:
rsync –stats –progress –port=8730 -anvvzr localhost::apps/ /apps/

Similar Posts

OpenBSD PF and OpenDNS

At home, I needed a way to prevent anything but OpenDNS from being used for DNS, and needed a rule that would do it in OpenBSD PF. Install and Configure First off, to setup an OpenDNS client on OpenBSD, install the ddclient package via pkg_add ddclient