Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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


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

Browse other questions tagged or ask your own question.