On Thu, Sep 15, 2005 at 08:45:00AM -0400, Dave Mielke wrote:
> When using --backup, the sequence (as monitored by strace) is:
>
> rename("/path/to/", "/")
> rename("/path/to/..xxxxxx", "/path/to/")
>
> This, of course, leaves a momentary window wherein 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.


Good catch. But what about when backup-dir is not on same filesystem
as original? link will give EXDEV, I think.

-chris

>
> --
> 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@mielke.cc | 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

--
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html