Mr Serdar Yegulalp occasionlly comes up with useful titbits of
information, but I’m not sure I’d count this among them
<https://www.infoworld.com/video/4164431/how-to-back-up-sqlite-databases-the-right-way-not-by-copying-them.html>.
Does anybody else use SQLite’s backup API? I’ve never bothered,
because SQLite is a single-user DBMS. To backup a database, I just
shut down the program accessing it, and do a regular file copy on the database file. Simple.
I think the backup API might be useful from within the app accessing
the database itself, to provide its own backup function while it is
still running. Again, not something I’ve felt much need for; in my experience, long-running service-style apps tend to use multiuser
DBMSes, which can handle multiple simultaneous connections without
things getting confused. And backing them up is easily done by making
yet another connection from a database dump utility, usually provided
as part of the DBMS package.
| Sysop: | DaiTengu |
|---|---|
| Location: | Appleton, WI |
| Users: | 1,116 |
| Nodes: | 10 (0 / 10) |
| Uptime: | 86:53:28 |
| Calls: | 14,305 |
| Files: | 186,338 |
| D/L today: |
1,016 files (320M bytes) |
| Messages: | 2,525,511 |