Dear rsync developers, rsync 2.6.9 appears to have a problem syncing files that contain '::' in their filename. I ran into this set of errors recently: [jneil-pc:fermi1/hw/fermi1_gf100][162]> /home/utils/rsync-2.6.9/bin/ rsync -ah -z --rsh=/bin/rsh --rsync-path='/usr/bin/env -i /home/utils/ rsync-2.6.9/bin/rsync' --exclude='/cygwin/cygwin-*/' sunfire7:/home/ nv/utils/ /home/nv/utils/ rsync: mkstemp "/home/nv/utils/file_locking/file_locking-0.01/man/ man3/.Fcntl::Flock.3.2laWW6" failed: Invalid argument (22) rsync: mkstemp "/home/nv/utils/file_locking/file_locking-0.01/man/ man3/.Fcntl::Flock::Spin.3.QKZcUB" failed: No such file or directory (2) rsync: mkstemp "/home/nv/utils/file_locking/file_locking-0.01/man/ man3/.File::FcntlLock.3.OSsBiw" failed: Invalid argument (22) rsync: mkstemp "/home/nv/utils/file_locking/file_locking-0.01/man/ man3/.File::FcntlLockfile.3.9oCMcm" failed: Invalid argument (22) rsync: mkstemp "/home/nv/utils/file_locking/file_locking-0.01/man/ man3/.File::FcntlLockfile::LikeNFSLock.3.YZEh9C" failed: No such file or directory (2) rsync error: some files could not be transferred (code 23) at main.c (1385) [generator=2.6.9] and it turns out to be caused by this set of files appearing recently on the source server: /home/nv/utils/file_locking/file_locking-0.01/man/man3/Fcntl::Flock.3 /home/nv/utils/file_locking/file_locking-0.01/man/man3/ Fcntl::Flock::Spin.3 /home/nv/utils/file_locking/file_locking-0.01/man/man3/File::FcntlLock.3 /home/nv/utils/file_locking/file_locking-0.01/man/man3/ File::FcntlLockfile.3 /home/nv/utils/file_locking/file_locking-0.01/man/man3/ File::FcntlLockfile::LikeNFSLock.3 When these files were removed the rsync errors went away. I looked through the rsync bug database and didn't see any entries on this subject. I can't try rsync 3.0 since I don't have admin rights on the rsync server. Anybody know if this a known issue? Thanks, John Neil
On 7/24/07, John Neil <johnneil@mac.com> wrote:> rsync 2.6.9 appears to have a problem syncing files that contain > '::' in their filename. I ran into this set of errors recently: > > [jneil-pc:fermi1/hw/fermi1_gf100][162]> /home/utils/rsync-2.6.9/bin/ > rsync -ah -z --rsh=/bin/rsh --rsync-path='/usr/bin/env -i /home/utils/ > rsync-2.6.9/bin/rsync' --exclude='/cygwin/cygwin-*/' sunfire7:/home/ > nv/utils/ /home/nv/utils/ > rsync: mkstemp "/home/nv/utils/file_locking/file_locking-0.01/man/ > man3/.Fcntl::Flock.3.2laWW6" failed: Invalid argument (22) > rsync: mkstemp "/home/nv/utils/file_locking/file_locking-0.01/man/ > man3/.Fcntl::Flock::Spin.3.QKZcUB" failed: No such file or directory (2)These errors show that the receiving rsync is trying to create the files but the operating system/filesystem is refusing them. What OS is the receiving machine running? If (as your email address hints) it is Mac OS X, the errors could be a result of ":" being the path separator on older versions of Mac OS. Try creating files of the offending names manually at the shell. If you get the same errors, you know the errors are not rsync's fault. If you don't need the "::" files on the destination, you can tell rsync not to even try to copy them by passing --exclude='**::**' . If you want rsync to translate the names to something the destination accepts, add your support to this enhancement request: https://bugzilla.samba.org/show_bug.cgi?id=4791 . Matt