Skip to main content

Module stash

Module stash 

Source
Expand description

Snapshot the current store to a dated tar.gz archive.

stash writes a timestamped archive containing a self-consistent copy of lantern.db into <store>/stashes/. Consistency is achieved by running PRAGMA wal_checkpoint(TRUNCATE) beforehand, which folds any pending WAL pages into the main database file, so the archive contains the complete committed state without needing separate wal/shm sidecars.

The operation never modifies the store’s catalog tables, so every other Lantern command keeps working normally afterwards.

Structs§

StashReport

Functions§

print_json
print_text
stash