Page 1 of 1

rsync: file has vanished

Posted: Tue Jul 01, 2008 11:18 am
by ^rooker
[PROBLEM]
Sometimes rsync outputs errors about vanished files, although the files exist and haven't changed during replication:
file has vanished: "<filename>"

IO error encountered -- skipping file deletion

rsync warning: some files vanished before they could be transferred (code
24) at main.c(1298)

[SOLUTION?]
In my case, those files were symlinks to files outside the folder that rsync was looking at. With the "--copy-unsafe-links" option, that should have been fine, but it behaves strange.

On the samba mailing list, someone said this could be caused by rsync running chroot'ed - but in my case it's deactivated in "/etc/rsyncd.conf".

I haven't found a good solution, except omitting the "--copy-unsafe-links" option, which causes these symlinks to be kept as links. :(