Skip to content

Commit a395c65

Browse files
Copilotgarthvh
andauthored
Spec: Automatic node database backup/restore on connection switch
Agent-Logs-Url: https://github.com/meshtastic/Meshtastic-Apple/sessions/b4aff0c8-1e59-46ef-be58-ad02975ce5df Co-authored-by: garthvh <1795163+garthvh@users.noreply.github.com>
1 parent 0f020b6 commit a395c65

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

  • specs/011-database-backup-system

specs/011-database-backup-system/spec.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,10 @@ A user wants to see which node backups exist, how much space they consume, and o
9696
- The existing `PersistenceController` manages a single `ModelContainer` shared across the app.
9797
- Backups are stored locally on-device (not synced to iCloud unless explicitly decided).
9898
- The user typically connects to a small number of nodes (2–5) rather than dozens.
99+
- **The database contains only one node's data at a time** — the app clears previous node data before connecting to a new node. This means backup is a full SQLite file snapshot (not per-node filtered extraction).
100+
101+
## Clarifications
102+
103+
### Session 2026-05-22
104+
105+
- Q: What is the backup granularity — full database snapshot or per-node filtered data? → A: Full SQLite file snapshot (the DB only ever contains one node's data at a time; it clears previous node data before connecting a new one).

0 commit comments

Comments
 (0)