On Sun, 11 Sep 2005, David Johnston wrote:
On Fri, 2005-09-09 at 11:01 -0400, Lamar Owen wrote:
(multiple versions, consistent repository states) done. While a CVS
commit
is in progress, for instance, other users still see the previous
state; this
is not true for a YUM repository.
Hmm. This sounds like the crux of the problem. If the mirroring software could be tricked into copying the repodata last, wouldn't this problem (and this thread) go away?
rsync does not allow you to specify an order, however rsync has 2 options. --delay-updates will update the mirror at the end of the sync, which is near atomic (this is functionality that Jeff Pitman wrote when I needed it for my repository) and you have an atomic-script that comes with rsync that hardlinks the tree, makes updates in that new tree and finally atomically puts it all back.
This one thing right there will help tremendously. Thanks for the pointer to --delay-updates (any idea which version of rsync this first appeared?).