I use rsync daily for backups. I recently tried rsync to backup some dirs in my local machine into dirs mounted as sshfs volumes in a remote machine. While it correctly transfers files not already existing in the recipient, it fails to modify the content of existing ones or to delete them if extraneous (option --del). What I get is an error like: rsync: rename <tmp filename in the recipient> -> <real filename in the recipient>: Operation not permitted (1) rsync error: some files could not be transferred (code 23) at main.c(1031) [sender=3.0.2] I wonder whether there are sshfs or rsync flags that would fix this.
This is not an rsync bug. It looks like passing "-o workaround=rename" to sshfs might make renames work. If not, you can pass --inplace to rsync to avoid renames.