Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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?

share|improve this question
1  
No, and a program may never stop running and close it's files.The answer to this is snapshots. LVM and ZFS are options, depending on your OS. –  jordanm Jan 16 '13 at 19:58
    
well it may be acceptable if rsync uses deltas. I was kind of wondering if my scenario might work if I used the whole file flag –  Derek Jan 16 '13 at 20:48

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.