fix(backup): exclude the code-search index from the archive #775

Stängd
supernaut vill sammanfoga 1 incheckning från fix/exclude-zoekt-from-backups in i main
Ägare

The hot backup already skips /forgejo/indexers. The age archive exports the whole Forgejo volume, so drop the index from that tar stream too. The index is derived data and Forgejo rebuilds it.

The filter is a small stdlib script, covered in scripts/test_backup_guards.py. It accepts member names with or without a ./ prefix. GNU tar --delete was not used because it fails when no index exists.

Not tested against a real podman volume export stream.

Closes #189

The hot backup already skips `/forgejo/indexers`. The age archive exports the whole Forgejo volume, so drop the index from that tar stream too. The index is derived data and Forgejo rebuilds it. The filter is a small stdlib script, covered in `scripts/test_backup_guards.py`. It accepts member names with or without a `./` prefix. GNU `tar --delete` was not used because it fails when no index exists. Not tested against a real `podman volume export` stream. Closes #189
supernaut lade till 1 incheckning 2026-10-18 11:18:30 +00:00
fix(backup): exclude the code-search index from the archive
Alla kontroller lyckades
ci / ci (pull_request) Successful in 3m0s
af9ab2254d
The hot backup already skips /forgejo/indexers. The age archive exports
the whole volume, so drop the index from that tar stream too. The index
is derived data and Forgejo rebuilds it.

Closes #189
Upphovsperson
Ägare

Closing without merging. The hot backup already excludes /forgejo/indexers, and code search is off, so the archive holds no index today. This adds a stream filter to the backup path for no current gain. Revisit when code search is re-enabled.

Closing without merging. The hot backup already excludes `/forgejo/indexers`, and code search is off, so the archive holds no index today. This adds a stream filter to the backup path for no current gain. Revisit when code search is re-enabled.
supernaut stängde denna ändringsförfrågan 2026-10-18 11:23:01 +00:00
Alla kontroller lyckades
ci / ci (pull_request) Successful in 3m0s
Obligatorisk
Detaljer

Ändringsförfrågan stängd

Logga in för att delta i denna konversation.
Inga granskare
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-infra!775
Ingen beskrivning angiven.