Hi, when I use option remove-source-files and source files is opened and growing rsync copy partial source file and after copying remove it even though in time after copying the files are different I suggest to check difference after file is copying and if source and destination are different don`t remove the source file next improve is to setup options like remove-source-file-delay to setup some time after copying to check difference between source and destination and remove source only if the files are the same next improve is to setup options like remove-source-file-loop to setup numbers of loop to try if source file was already closed if remove-source-file-loop=0 it will be forever I hope this scenario could be implemented independently on OS and help many people to use rsync for opened files. peter
While the user should not be getting themselves into this situation (if they're smart about it), it is good for rsync to help the user not shoot themselves in the foot. I have made rsync re-stat the file and skip the remove if the size or mtime is different. This will be fixed in 3.1.0. I've also added some helpful hints in the manpage on how best to use --remove-source-files.