Difference between revisions of "ZIM Updates"

Jump to navigation Jump to search
Use proper ll (without dot)
(Use proper ll (without dot))
 
Line 30: Line 30:


==== TL;DR ====
==== TL;DR ====
The period of ZIM filenames is changed from <code>YYYY-MM</code> to <code>YYYY-MM[.ll]</code>, with <code>.ll</code> being an '''optional''' letter(s) suffix, used only when ZIM are updated within a single month.
The period of ZIM filenames is changed from <code>YYYY-MM</code> to <code>YYYY-MM[ll]</code>, with <code>ll</code> being an '''optional''' letter(s) suffix, used only when ZIM are updated within a single month.


Retention rule is updated to match requirements mentioned above (keep two very distinct versions and keep files at least 30 days).
Retention rule is updated to match requirements mentioned above (keep two very distinct versions and keep files at least 30 days).
Line 46: Line 46:


* keeping the same format for <code>period</code> of the ZIM filename on a normal basis
* keeping the same format for <code>period</code> of the ZIM filename on a normal basis
* should we publish a new version of a ZIM within a single month, the <code>period</code> of the ZIM filename will use a new pattern: <code>YYYY-MM.ll</code> where <code>ll</code> is one or multiple alpha letter, starting from <code>a</code> (for first update) to <code>z</code>, then <code>aa</code>, <code>ab</code>, ... (should we publish more than 26 updates in a single month ... never seen so far) and so on
* should we publish a new version of a ZIM within a single month, the <code>period</code> of the ZIM filename will use a new pattern: <code>YYYY-MMll</code> where <code>ll</code> is one or multiple alpha letter, starting from <code>a</code> (for first update) to <code>z</code>, then <code>aa</code>, <code>ab</code>, ... (should we publish more than 26 updates in a single month ... never seen so far) and so on
* change the ZIM files retention rules:
* change the ZIM files retention rules:
** keep the last version of two ZIM files from the two last distinct months (e.g. if we have `2024-04`, `2024-04.a`, `2024-06`, `2024-06.a`, `2024-06.b`, then we keep `2024-04.a` and `2024-06.b` ; hopefully this is a scenario which will never happen, but this is the algorithm)
** keep the last version of two ZIM files from the two last distinct months (e.g. if we have `2024-04`, `2024-04a`, `2024-06`, `2024-06a`, `2024-06b`, then we keep `2024-04a` and `2024-06b` ; hopefully this is a scenario which will never happen, but this is the algorithm)
** '''AND''' keep every version which is 30 days old or less
** '''AND''' keep every version which is 30 days old or less


33

edits

Navigation menu