Expand description
Portable .nbkp backup and restore.
Online logical export of all entries via a redb read-txn snapshot; restore replays into a single redb write transaction. The Rust core is schema-agnostic — the schema hash, when known to the caller, is recorded in the backup header.
Structs§
- Backup
Stats - Statistics returned by a successful
write_backupcall. - Restore
Options - Options controlling restore behaviour.
- Restore
Stats - Statistics returned by a successful restore call.
Functions§
- backup_
to_ path - Writes a backup to
pathatomically: first to<path>.tmp, then fsync, then rename. - read_
backup - Reads a
.nbkpv1 stream fromrintodbaccording toopts. - restore_
from_ path - Reads a backup file at
pathand restores it intodbperopts. - write_
backup - Streams every (
composite_key, value) entry indbtowin the.nbkpv1 format.