SQLite
type: sqlite — back up a single SQLite database file by running sqlite3 <file> .dump and writing the resulting SQL to the archive.
Prerequisites
sqlite3must be installed on the snapr host and available inPATH(Debian/Ubuntu:sqlite3).- snapr needs read access to the database file. SQLite uses file locks during the dump, so backups taken while the application writes heavily may briefly fail — retry on the next schedule.
Fields
Example
Notes
- The output is a
.sqltext dump named after the source file (e.g.app.sql). Restore withsqlite3 new.db < app.sql. - For binary copies (faster restore, larger size) use a local source pointed at the database directory while the application is stopped.