Expand description
Online crash-consistent backup and verified restore for arks serve
(governed by serve-operations.sot.md SO-BAK-1 and SO-BAK-2).
Ordering guarantee:
- Acquire
ForgeStore::lock_mutand copystore.jsonatomically. - Copy ref snapshot (
HEAD,packed-refs,refs/). - Copy
objects/pack/before loose objects so every snapshotted ref stays reachable. - Write SHA-256
manifest.jsonatomically.
Restore verifies every SHA-256 entry and runs a native arks_repo::Repository::open
connectivity check without spawning stock git.
Structs§
Constants§
Functions§
- backup_
server_ data - Create an online crash-consistent backup of a single repository or multi-repo root.
- restore_
server_ data - Verify a backup directory’s SHA-256 manifest and native repository connectivity,
and optionally restore it into
target_dir.