type: sqlite backs up a single SQLite database file by running sqlite3 <file> .dump and writing the resulting SQL to the archive.
Example
snapr.yaml
Options
Requirements
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 a backup taken while the application writes heavily may briefly fail — it will succeed on the next scheduled run.
Notes
- The output is a
.sqltext dump named after the source file (for exampleapp.sql). Restore it 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.