[mirror-admin] sunsite.mff.cuni.cz doesn't use rsync --delay-updates

Carlos Carvalho carlos at fisica.ufpr.br
Wed May 6 22:23:51 EDT 2009


Matt Domsch (Matt_Domsch at dell.com) wrote on 5 May 2009 07:29:
 >On Tue, May 05, 2009 at 11:42:34AM +0200, Jakub Jelinek wrote:
 >> Last time I've enabled --delay-updates, rsync kept leaving around .* files
 >> in quite big volumes.  I can try to enable it again if it got any better
 >> since then.

There's a history of bugs in rsync with --delay-updates. One of them
has been corrected only in 3.0.5.

 >If you don't use --delay-updates, then the other option is to use a
 >two-pass sync.  First you sync all the new packages, excluding (but
 >not deleting) repodata/, and not deleting removed packages.  Second pass
 >you sync repodata/ and delete removed packages.  This would ensure,
 >from an end-user's POV, a consistent mirror.

No, unfortunately not. You can't scan just repodata/ in the second
pass because rsync won't remove anything outside it, ie. the packages.
You have to sync everything again, which means you double the scans...
Not feasible IMO.

 >--delay-updates effectively does both passes for you in a single pass.

--


More information about the Mirror-admin mailing list