refactor(backup): name archives bitborg-*, accept gitborg-* until 2026-10-31 #518
Inga granskare
Etiketter
Inga etiketter
area/backups
area/ci
area/control-panel
area/identity
area/infra
area/observability
area/payments
area/security
area/storage
area/web
blocked
needs-info
needs-triage
ready-for-implementation
type
bug
type
chore
type
docs
type
epic
type
feature
type
task
wontfix
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Inget förfallodatum satt.
Beroenden
Inga beroenden satta
Referens
bitborg/bitborg-infra!518
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "feat/465-bitborg-archive-names"
Borttagning av en gren är permanent. Även om den borttagna grenen kan fortsätta existera en kort tid innan den faktiskt tas bort, kan det INTE ångras i de flesta fall. Vill du fortsätta?
What
Name new daily archives
bitborg-<TS>.tar.ageinstead ofgitborg-<TS>.tar.age, with a dual-match transition.backup_archive_prefixes: [bitborg, gitborg]ingroup_vars/all/vars.yml. The first entry is what the backup writes; every entry is what consumers match. Removegitborgafter 2026-10-31, when nogitborg-*archive is left in retention.bitborg-backup.sh: archive and.partialnames from the first prefix;.partialsweep, local prune and off-siterclone delete --includematch every prefix (.tar.ageand legacy.tar.enc).bitborg-backup-verify.sh: newest by mtime over every prefix.bitborg-backup-drill.py: lists every prefix and picks the newest by the embedded timestamp. The oldmax(names)would have rankedgitborg-abovebitborg-and restored a stale archive.bitborg-. A locked bucket is switched to only after this is applied, so it never holds agitborg-*archive and needs no legacy rule. Cleanup due 2026-10-31 noted.Host paths, the OS user, volumes and unit names are unchanged (legacy pins, separate migration).
Verification
--syntax-check, ansible-lint 0/0, rendered templates passbash -nandpy_compile, shellcheck info only (pre-existing). Local test: withgitborg-20261001…(older) andbitborg-20261002…(newer), verify, prune and the drill all select thebitborg-archive; a plain name sort picks the stale one.Apply
Tags
backup,backup-drill: redeploys the backup, verify and drill scripts, no unit changes, no restarts. The next 03:30 run writes the firstbitborg-archive.Refs #465