pub fn run_snapshot( db_dir: &Path, wal: WalDisposition, retention: Option<u32>, ) -> Result<String, CliError>
Open dir and write snapshot.bin, archiving the WAL by default.
dir
snapshot.bin