Skip to main content

Module backup

Module backup 

Source
Expand description

Full-database backup and restore: a single portable SQLite file out, and back in.

Independent of history-retention’s age-based deletion of old runs — this is about moving or protecting an entire installation (support diagnostics, migrating to a new machine, or a safety net immediately before a risky operation), not about pruning individual runs. Exposed to both the CLI and the GUI.

Structs§

RestoreOutcome
The result of a successful restore_from: the fresh pool to use going forward, and where the previously-live database was safety-copied to before being overwritten.

Functions§

backup_to
Writes a complete, consistent, compacted snapshot of pool’s database to dest.
restore_from
Restores db_path from a backup_to-produced file, replacing its entire contents.