To force SQLite to make a checkpoint, execute PRAGMA wal_checkpoint.
Alternatively, ship the database with journal_mode = DELETE
, and change the mode after the file has been installed.
In any case, there is no problem with just shipping all files.
(The -shm
file does not contain permanent data and could be ignored.)