rsync with --remove-sent-files option and open files
===

Every minute I need to copy recorded files from 3 servers to one data storage. I don't need to save original files - data processing is outside of all of them.

But when i use option `--remove-sent-files`, rsync sends and removes not finished (not closed) files.

I've tried to prevent sending these open files with `lsof` and `--exclude-from`, but it seems, that rsync does not unserstand full paths in exlude list:

    --exclude-from=FILE     read exclude >>patterns<< from FILE

    lsof | grep /projects/recordings/.\\+\\.\\S\\+ -o | sort | uniq
    /projects/recordings/<uid>/<path>/2012-07-16 13:24:32.646970-<id>.WAV

So, the script looks like:

    # get open files in src dir and put them into rsync.exclude file
    lsof | grep /projects/recordings/.\\+\\.\\S\\+ -o | sort | uniq > /tmp/rsync.exclude
    # sync without these files
    /usr/bin/rsync -raz --progress --size-only --remove-sent-files --exclude-files=/tmp/rsync.excldude /projects/recordings/ site.com:/var/www/storage/recordings/
    # change owner
    ssh storage@site.com chown -hR storage:storage /var/www/storage/recordings

So, may be i should try another tool? Or why rsync does not listen to exludes?