The Samba-Bugzilla – Bug 3363
rsync gets stuck on first file
Last modified: 2006-01-02 09:16:22 UTC
I'm trying to use rsync to copy several pictures from my work computer (xxx.xxx.xxx.edu) to my home computer. I'm using cygwin. This is what I run on my home computer:
$ rsync -avu --progress Michael@xxx.xxx.xxx.edu:"My\ Pictures/" .
It successfully creates the first few directories, but when it starts on the first file, it seems to get stuck. The progress bar stays at all zeros, and it doesn't seem to be using any CPU.
receiving file list ...
1986 files to consider
0 0% 0.00kB/s 0:00:00
I don't think I'm doing anything unusual or fancy... maybe there's something about my syntax that is wrong and I'm just not seeing it.
The problem you're encountering is that pipes in cygwin lose data, and rsync hangs waiting for that missing data to arrive. Once cygwin gets their pipe code fixed, rsync will work fine on cygwin. In the meantime, you can avoid this problem by avoiding a remote-shell -- i.e. switch over to running a daemon and using daemon-mode's :: syntax (that may or may not be possible for you).
I'm resolving this as "LATER" because there is no other appropriate resolution that indicates that the bug lies not in rsync, but in the OS. Later, we can verify that it is fixed (once this is fixed in cygwin).