rsync: file has vanished

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
User avatar
^rooker
Site Admin
Posts: 1484
Joined: Fri Aug 29, 2003 8:39 pm

rsync: file has vanished

Post 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. :(
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
Post Reply