I am interested in using rsync with the --remove-source-files option. I am planning on pointing it to a directory, with a command like:
rsync -avm --remove-source-files --include='*.dat' -f 'hide,! */' . /destination_dir
If I have a file open for writing in the directory, will rsync be smart enough to not transfer that file until it is closed?