rsync 2.6.9 error copying files containing '::' ?
Matt McCutchen
hashproduct+rsync at gmail.com
Tue Jul 24 20:33:39 GMT 2007
On 7/24/07, John Neil <johnneil at 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
More information about the rsync
mailing list