feat: use Restic for encrypted incremental backups

Keep legacy restores readable while using Restic for new captures, scoped Wormhole repositories, and chunk garbage collection.
This commit is contained in:
2026-11-10 10:48:05 +07:00
parent 95778d54e4
commit 749c4cc828
15 changed files with 955 additions and 119 deletions

View File

@@ -1,17 +1,14 @@
//! Restic-compatible path layout vault engine.
//! Encrypted snapshot metadata and Restic-backed storage for new captures.
//!
//! Layout under vault root:
//! - `config` — repository version marker (restic-compatible sentinel)
//! - `data/` — content-addressed encrypted packs (`{prefix}/{id}`)
//! - `snapshots/` — JSON snapshot metadata
//! - `index/` — chunk index shards
//! - `keys/` — key material (local key file)
//!
//! Full `rustic_core` integration is deferred until toolchain meets its MSRV;
//! emergency verify may use external `rustic`/`restic` where formats align.
//! - `restic/` and `outposts/` — Restic repositories
//! - `snapshots/` — Tessera snapshot metadata
//! - `keys/` — vault key derivation and outpost configuration
//! - `config`, `data/`, `index/` — legacy Tessera storage
mod crypto;
mod index;
mod restic;
mod vault;
pub use vault::*;