Phase 6 part 1: database backups
Backups with SQLite's VACUUM INTO into <data>/backups: on request (Settings → Backups, supermarket backup [note]), before every schema migration, and daily, keeping 7 dailies and 4 weeklies. Listed with size and schema; downloadable and deletable. The old app.db.pre-* copies are moved in, with their -wal files folded in first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -97,6 +97,25 @@ Throughout, also notice:
|
||||
saves and is used.
|
||||
- [ ] With an OpenAI-compatible server, *List its models* lists them.
|
||||
|
||||
### Backups
|
||||
|
||||
- [ ] Settings → Backups lists the backups, newest first, with when, why
|
||||
(by you, daily, before an update, before a restore, an older copy),
|
||||
size and schema.
|
||||
- [ ] *Back up now* with a note adds one at the top, named with the note.
|
||||
- [ ] *Download* saves a file that opens with `sqlite3` (`.tables` lists
|
||||
Supermarket's tables); there's no `secrets.json` content in it.
|
||||
- [ ] *Delete* asks first, then removes it from the list and the folder.
|
||||
- [ ] A daily backup appears once a day while the app runs, never twice
|
||||
on one day; after more than a week, older dailies thin out to one a
|
||||
week.
|
||||
- [ ] Updating Supermarket to a version with a database change makes a
|
||||
"Before an update" backup first.
|
||||
- [ ] `supermarket backup "a note"` and `supermarket backups` work from a
|
||||
terminal; with the app stopped they say to start it.
|
||||
- [ ] The old `app.db.pre-*` files are gone from the data folder and listed
|
||||
as "An older copy".
|
||||
|
||||
## 4. Inventory
|
||||
|
||||
- [ ] Add a partner and a competitor by hand, with websites, feeds, X
|
||||
|
||||
Reference in New Issue
Block a user