Skip to main content

Module backup

Module backup 

Source
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:

  1. Acquire ForgeStore::lock_mut and copy store.json atomically.
  2. Copy ref snapshot (HEAD, packed-refs, refs/).
  3. Copy objects/pack/ before loose objects so every snapshotted ref stays reachable.
  4. Write SHA-256 manifest.json atomically.

Restore verifies every SHA-256 entry and runs a native arks_repo::Repository::open connectivity check without spawning stock git.

Structs§

BackupManifest
ManifestFile
RestoreReport

Constants§

BACKUP_MANIFEST_VERSION

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.