backup: align the storage backup with the hot backup, and guard disk in verify #618
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
priority
high
priority
low
priority
medium
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#618
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "%!s()"
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
Two sibling scripts differ from the ones they should match.
bitborg-backup-storage.sh.j2:76-84runsrestic backupunderset -e. The hot script treats restic exit code 3 (some files vanished while scanning) as a warning (bitborg-backup-hot.sh.j2:156-163).bitborg-backup-verify.sh.j2:51-55decrypts tobundle.tar, extracts into the same directory and never removes the tar. It has no free-space check. The drill has both (the #131 guard, and early cleanup).Why
The backup volume is shared by the local archives, the verify workdir and the drill workdir.
Failing case
forget --pruneis skipped and the success timestamp is not written. The status flips to 1 although the snapshot exists.Fix
Copy the hot script's
rc=$?andrc -eq 3handling into the storage script. In verify, abort when free space is belowbackup_drill_min_free_gbbeforeage -d, andrm -f "${WORK}/bundle.tar"right after the extract.Done when