[mirror-admin] quick-fedora-mirror

Chuck Anderson cra at WPI.EDU
Wed May 18 08:37:30 EDT 2016


On Wed, May 18, 2016 at 01:14:41AM -0500, Jason L Tibbitts III wrote:
> >>>>> "CA" == Chuck Anderson <cra at wpi.edu> writes:
> 
> CA> Since deletes are being done before the rsync run, the repo will be
> CA> in an inconsistent state during the time period between these
> CA> deletes and the full rsync run.
> 
> Actually if you look at the current code you'll see that the deletes are
> done after the rsync run.  It's changing rapidly (at least while I'm
> awake) but it has settled down somewhat.

Not that I see as of a few seconds ago.  Did you push your changes to
pagure.io?

> Some random ideas:
> 
> When doing deletions, it should be possible to extract the mtime of the
> enclosing directories and touch -m them back, but even then you have to
> be careful about the order in which you do things.  I wonder how rsync
> does it, since it does plenty of manipulation after it's transferred
> things.

Yes, I was looking into this last night.

> It is possible that rsync has an option to delete files from the
> --files-from list which do not exist on the server, in which case we
> could just let it do the deletions.  I thought I tried a few things but
> if there is such an option I didn't find it.

I also thought of this and was looking, but didn't find it either.

> Maybe some smart person here can cook up a "delete and restore timestamp
> on containing directory" function while I get some sleep.

I'll see what I can come up with, but it may not be today.

--


More information about the Mirror-admin mailing list