1
1
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2026-03-07 15:06:24 +01:00
infrastructure/roles/dbscripts/files/archive-cleanup.timer
Kristian Klausen 805c26c686
archive/dbscripts: Sync archived packages from repos.a.o to gemini.a.o
archivetools will add missing packages to the "packages" directory in
the archive[1], but it is only done once a day, so if a package is
updated more than once in that timeframe, the earlier version will not
be added to the archive.

For this reason, we need to sync archived packages from repos.a.o to
gemini.a.o, so we don't lose packages, but also because we want the
archived packages to show up faster on the archive server than once a
day.

The package files could already exist on gemini, created by
archivetools, in which case rsync just ignores the files
(--ignore-existing).

The archived package files are deleted on repos.a.o after three days, so
there is some leeway to stop archive-cleanup.timer if the sync breaks
for whatever reason.

[1] d5cbd5a5a9/archive.sh (L141-L200)

Relates to #531
2025-01-19 12:31:37 +01:00

7 lines
75 B
SYSTEMD

[Timer]
OnCalendar=daily
Persistent=true
[Install]
WantedBy=timers.target