windows-7rsyncmsysgitubuntu-8.04cwrsync

rsync error: Bad file number


I'm trying to rsync content from local machine (Windows 7 on 64bits) to remote server (Ubuntu 8 on 64bits) and it fails. Any piece of advice is more than welcome as I've already spent too much time with this crap... Thanks in advance!

$ ls -al
total 3
drwxr-xr-x    4 www www     4096 Jun  7 11:04 .
drwxr-xr-x    5 www www     4096 Jun  7 13:13 ..
drwxr-xr-x    7 www www        0 Jun  7 11:04 release-20110607110404

$ rsync -avz ./release-20110607110404/ www@web1:/home/www/
opening connection using: ssh -l www web1 rsync --server -vvlogDtprze.iLsf . /home/www/
select: Bad file number
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(610) [sender=3.0.8]

$ rsync --version
rsync  version 3.0.8  protocol version 30
Copyright (C) 1996-2011 by Andrew Tridgell, Wayne Davison, and others.
Web site: http://rsync.samba.org/
Capabilities:
    64-bit files, 64-bit inums, 32-bit timestamps, 64-bit long ints,
    socketpairs, hardlinks, symlinks, IPv6, batchfiles, inplace,
    append, ACLs, no xattrs, iconv, symtimes   

Solution

  • Heh, I figured it out, at least found the problem's source... It doesn't work in git bash from msysgit (code.google.com/p/msysgit), but it works in regular windows command line! Weird!!!