Expand description
DB snapshot — atomic SQLite backup with WAL checkpoint.
Creates a consistent copy of the database by issuing a WAL checkpoint then performing an atomic file copy. Tracks snapshots in backup_snapshots.
Functions§
- backup_
dir - Default backup directory under the data root.
- create_
snapshot - Create an atomic snapshot of the SQLite database.
- get_
snapshot - Find a snapshot by ID.
- list_
snapshots - List all recorded snapshots, newest first.
- verify_
snapshot - Verify a snapshot file matches its recorded checksum.