When using --backup, the sequence (as monitored by strace) is:

   rename("/path/to/<file>", "<backup-dir>/<file><backup-suffix>")
   rename("/path/to/.<file>.xxxxxx", "/path/to/<file>")

This, of course, leaves a momentary window wherein <file> can't be found. Might 
it be possible to replace the first rename() with link() instead? This, of
course, could only be done when the backup directory is on the same volume.

-- 
Dave Mielke           | 2213 Fox Crescent | I believe that the Bible is the
Phone: 1-613-726-0014 | Ottawa, Ontario   | Word of God. Please contact me
EMail: [EMAIL PROTECTED] | Canada  K2A 1H7   | if you're concerned about Hell.
http://FamilyRadio.com/                   | http://Mielke.cc/bible/
-- 
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to