On 08/05/2023 16:07, Polarian wrote:
Hello,
I have been looking around for a definition and explanation of the lastsync and lastupdate files within the arch mirrors.
I assume the following:
lastsync - The last time the arch mirror was synced with the main repository.
Yes, lastsync is just a file stamped by the tier0 mirror. So if the mirror sync succesfully it should obtain this file. https://gitlab.archlinux.org/archlinux/infrastructure/-/blob/master/roles/db... https://gitlab.archlinux.org/archlinux/infrastructure/-/blob/master/roles/db...
lastupdate - The last time the main repository was updated.
That's what dbscripts touches yes when a repo is modified. https://gitlab.archlinux.org/archlinux/dbscripts/-/blob/master/db-functions#... This is mainly for rsyncing: https://gitlab.archlinux.org/archlinux/infrastructure/-/blob/master/roles/sy...
However, inside of these files seems to be a unix timestamp, and it seems to convert nicely into the right time.
The point of this post is for the following questions:
1. Are my assumptions about the files I made above correct?
Yes
2. I am correct that the integer within the files is a unix timestamp?
Yes