Skip to main content

powdb_backup/
lib.rs

1//! Physical backup, restore, and point-in-time recovery for PowDB.
2//!
3//! Supports full snapshots ([`full_backup`]) and page-level incremental
4//! (differential) backups against a full base ([`incremental_backup`]).
5//! Restore rebuilds a data directory from a full backup ([`restore()`]), or
6//! chains a full base plus ordered increments for coarse point-in-time
7//! recovery ([`restore_chain`]). [`RestoreSyncMode`] controls whether a
8//! restored copy strips, preserves, or forks the source's sync identity, and
9//! [`bootstrap_replica_from_full_backup`] seeds a sync replica from a backup.
10pub mod bootstrap;
11pub mod full;
12pub mod incremental;
13pub mod manifest;
14pub mod restore;
15pub use bootstrap::{bootstrap_replica_from_full_backup, ReplicaBootstrapSummary};
16pub use full::full_backup;
17pub use incremental::{incremental_backup, restore_chain, restore_chain_with_sync_mode};
18pub use manifest::{
19    BackupManifest, ChangedFile, FileEntry, IncrementManifest, SyncSnapshotMetadata,
20};
21pub use restore::{restore, restore_with_sync_mode, RestoreSyncMode};