This command successfully synchronizes all files in src with the dest folder on Windows' C: drive.
$ rsync -av /cygdrive/c/src /cygdrive/c/dest
However, if the dest folder is located in an EncFS partition, say X:, I get an error.
"/cygdrive/x/dest/.a.txt.G5csoY" -> "src/a.txt": File exists (17)
In the end, file a.txt is removed from the dest folder by rsync. So running rsync again with the same parameters successfully copies the file.
How can I sync these two directories by running rsync just once?
Try to use something like --temp-dir="/cygdrive/C/" , where C:\ is location for temp files. I found reasons to do so in this mailing list post, "rsync fails if it cannot stat destination file".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With