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.