Expand description
Online backup manifest and verification.
The manifest audit fields (Stage 1G, spec section 10.7) are additive and
every one of them defaults, so backups written before Stage 1G still
deserialize and validate unchanged: database_id/encryption decode as
None, and catalog_version, snapshot_unix_micros, and
open_generation decode as 0 (“unknown”). Conversely, pre-1G binaries
ignore the new keys because the manifest never denied unknown fields.
Structs§
- Backup
Encryption Metadata - Encryption metadata recorded in a backup manifest (Stage 1G). The KEK
salt itself travels inside the backup as the
_meta/keysfile, so only the scheme identifiers live here. - Backup
File - Backup
Manifest - Backup
Report - Restore
Report - Outcome of a post-restore validation pass (Stage 1G, spec 10.7), in the
idiom of
crate::gc::CheckReport/crate::gc::DoctorReport: soft findings collect inissues, hard corruption returnsErr.
Constants§
Functions§
- validate_
restore - Post-restore validation pass over a backup or restored database tree: re-verifies the manifest, every listed file size/hash, and the manifest/ file-set equality, then loads the catalog. Row counts are intentionally out of scope: opening the tree as a database would take its lock and bump its open generation.
- verify_
backup - Verify a backup manifest, every listed file size/hash, and the catalog.