Re: update anonftpsync
On Fri, Feb 29, 2008 at 01:03:35AM +0100, Arnt Karlsen wrote:
> On Thu, 28 Feb 2008 14:19:24 -0500, Justin wrote in message
> <[🔎] 20080228191924.GA21334@cetus>:
> > On Thu, Feb 28, 2008 at 07:43:13PM +0100, Arnt Karlsen wrote:
> > > On Tue, 26 Feb 2008 14:46:11 +0100, Josip wrote in message
> > > <[🔎] 20080226134611.GA25476@keid.carnet.hr>:
> > >
> > > > On Thu, Feb 21, 2008 at 11:01:34AM -0500, Justin Pryzby wrote:
> > > >
> > > > > --delay-updates --delete-after
> > > > > I don't know if either of these are strictly necessary. AFAICT
> > > > > think the 2nd rsync invocation can just use --del.
> > > >
> > > > --delay-updates helps the atomicity of updates, see the manual.
> > I was thinking it was an solution for a nonextant problem. I think I
> > was wrong though, since the Release and Packages files are supposed to
> > be in sync, which AIUI can never be pefectly solved but just
> > minimized. I don't know if there are any relationships besides
> > "Packages depends on debs" and "Release depends on Packages", though.
> ..how is then --del different from --delete-after when updating
> a Debian mirror, other than that one big ass batch at the end?
I think I was wrong about --delete-after; it really is needed.
Otherwise the *old* Packages.gz file will be referencing nonextant
.debs, which is the same situation that's trying to be avoided for the
new Packages.gz by running rsync twice.