Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does Rsync fail with a "File Exists (17)" error when syncing to an EncFS partition? [closed]

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?

like image 242
Alex Avatar asked Nov 02 '25 06:11

Alex


1 Answers

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".

like image 84
Vladimir Malkhanov Avatar answered Nov 04 '25 03:11

Vladimir Malkhanov