-
Notifications
You must be signed in to change notification settings - Fork 2
feat(backup): restore extracts the bridge node's storage too (#136) #169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
36981d2
9853239
710d816
cb395f8
ee8c624
cfa301a
3c86b71
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -325,14 +325,14 @@ You normally never need this: the bridge starts and stops with your export list. | |
| <CallbackMethod>menuRestoreFabricBackup</CallbackMethod> | ||
| <ConfigUI> | ||
| <Field id="warning" type="label"> | ||
| <Label>Restoring REPLACES the current fabric and restarts matter-server. The current fabric is moved aside (not deleted) so a bad restore is reversible. Requires 'Manage LaunchAgent' to be on.</Label> | ||
| <Label>Restoring REPLACES the current fabric and restarts matter-server. If the backup includes the Matter bridge node's storage, that is restored too — if the bridge node is running it is stopped and started around the swap; a stopped bridge stays stopped. The current fabric (and bridge storage, if restored) is moved aside, not deleted, so a bad restore is reversible. Requires 'Manage LaunchAgent' to be on.</Label> | ||
| </Field> | ||
| <Field id="backup" type="menu"> | ||
| <Label>Backup to restore:</Label> | ||
| <List class="self" method="getFabricBackups"/> | ||
| </Field> | ||
| <Field id="confirm" type="checkbox" defaultValue="false"> | ||
| <Label>I understand this replaces the current fabric and will restart matter-server.</Label> | ||
| <Label>I understand this replaces the current fabric (and the Matter bridge node's storage, if the backup has it) and will restart matter-server.</Label> | ||
|
Comment on lines
+328
to
+335
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win Keep bridge-restore documentation consistent with the runtime contract. The implementation can restore the controller while skipping bridge storage when bridge control is unavailable, the bridge storage path is unusable, or the paths overlap. The confirmation and documentation currently do not state this complete fallback behavior.
Proposed wording- If the backup includes the Matter bridge node's storage, that is restored too.
+ If the backup includes the Matter bridge node's storage, it is restored when
+ bridge control and a usable, non-overlapping storage path are available.
+ Otherwise, the bridge files are reported and skipped for manual recovery.📍 Affects 3 files
🤖 Prompt for AI Agents |
||
| </Field> | ||
| </ConfigUI> | ||
| </MenuItem> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Remove the stale “reports and skips” status.
Line 1503 still describes the pre-#136 behavior.
fabric_backup.restore_backupnow extracts bridge members when bridge control and storage are usable. Replace the stale sentence with the conditional behavior, or remove this item from the deferred list.🤖 Prompt for AI Agents