Add data-loss guards and first-run empty state
- Bulk delete now routes through a server-rendered confirmation page listing the selected titles; a `confirmed=1` form field is required before pages are actually deleted. Mirrors the single-delete flow. - Reset-template button gains a JS confirm() so stray clicks don't wipe the custom template. - Homepage shows a short, neutral empty-state block when the index has zero pages and no query — just names what tinyweb is and links to /add, /style, and /subscriptions as equal options. - /about gains a "your data" section explaining what lives in ~/.tinyweb/ (identity file, index.db), what losing each costs, and how /export differs from a full backup. - README gains a "Backups" subsection mirroring the /about copy. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
1bc695f508
commit
8dffd8ccea
2 changed files with 83 additions and 1 deletions
11
README.md
11
README.md
|
|
@ -109,6 +109,17 @@ Your data is stored in `~/.tinyweb/`:
|
|||
|
||||
This allows your data to persist between upgrades and stay separate from the application.
|
||||
|
||||
### Backups
|
||||
|
||||
Back up the whole `~/.tinyweb/` directory periodically. The two files that matter:
|
||||
|
||||
- **`tinyweb_identity`** is your permanent mesh identity. If you lose it, your destination hash changes and every subscriber has to re-subscribe to the new one. Keep it somewhere you trust; the file is `0600` by default.
|
||||
- **`index.db`** is your full reading history — every page, note, tag, and synced remote page. Losing it loses everything you've curated.
|
||||
|
||||
`models/` and `index.hnsw` are re-derivable (the model will re-download, and the HNSW index rebuilds from the database on next startup with semantic search enabled) so they don't need to be backed up.
|
||||
|
||||
The `/export` page produces a JSON dump of your pages. It's a migration aid — it doesn't preserve your identity file, your custom template, or subscription state. A full restore needs a copy of `~/.tinyweb/`.
|
||||
|
||||
### Docker
|
||||
|
||||
Data is stored in the `/data` volume inside the container. Use a volume mount to persist data:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue