rsync does not work with shared folders on virtual box (www.virtualbox.org). I am running an Ubuntu 9.10 guest on a Windows 7 host and in particular it does not like rsync trying to rename on to read-only files. However, making the target file writable first, does work and this patch achieves that.
Created attachment 5378 [details]
Patch to make files writable before renaming over them