On 2025-10-23 17:44:20, Hendrik Visage wrote:
> On 23 Oct 2025, at 08:25, onefang <onefang_devuan@???> wrote:
> On 2025-10-23 05:59:51, Shengqi Chen wrote:
>
> Hi,
>
> -----Original Message-----
> From: devuan-mirrors <[1]devuan-mirrors-bounces@???> On
> Behalf Of
> onefang
> Sent: Thursday, October 23, 2025 1:11 PM
>
> Which tries to update a Devuan package mirror with minimal issues.
> It
> should help prevent "this mirror is currently updating and might
> give
> errors", or at least shrink that window down to fractions of a
> second.
>
> It looks rather like Debian's two-stage rsync used in ftpsync.
>
> I've looked at ftpsync, it's much more complicated than what I think we
> need, but yes a two stage rsync.
>
> The Deb ftp_sync/mirror_sync script first phase pulls any new .DEBs and
> delete the superfluous files only after the repo/index files had been
> updated.
> ie.
> - Pull new .deb files
> - update indexes
> - remove superfluous files
> That “guarantees” that anybody pulling a new index file, should not get
> 404 errors, ie. index files before .deb files, and the window between
> pulling an old index file and the old files removed should be … minimal.
Again, exactly what my much more minimal script does.