--backup leaves window where file doesn't exist.
Dave Mielke
dave at mielke.cc
Thu Sep 15 12:45:00 GMT 2005
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: dave at mielke.cc | Canada K2A 1H7 | if you're concerned about Hell.
http://FamilyRadio.com/ | http://Mielke.cc/bible/
More information about the rsync
mailing list