feat(backup): add S2.6 daily profile backup (fixes #50)
One liveness-gated snapshot pass per launch, chained after provisioning: gateway.pid pid-liveness + ps scan (skip while the engine runs), 24 h age check, curated recursive copy (credentials and SQLite sidecars in; logs/caches/locks out), atomic temp+rename install, keep last 7. Restore stays manual copy-back in v1 — Help > Open Backup Folder and a RESTORE.md written beside the snapshots. [Generated by AI]
This commit is contained in:
1 parent
f21d3a6844
commit
e5b7203906
11 files changed
+593
-5
No files matched your search
@@ -18,6 +18,8 @@ final class AppGateState {
|
||||
var gateDismissed = false
|
||||
let gateModel = EngineGateModel()
|
||||
let provisioning = ProvisioningModel()
|
||||
/// #50: daily backup pass, sequenced after provisioning finishes.
|
||||
let backup = BackupModel()
|
||||
/// #14: the app-scoped mentor bridge — the pane renders it; quit tears it down.
|
||||
let mentor = MentorSessionModel()
|
||||
}
|
||||
@@ -47,6 +49,11 @@ struct MuseionApp: App {
|
||||
CommandGroup(replacing: .appInfo) {
|
||||
OpenAboutButton()
|
||||
}
|
||||
// #50: reveal the snapshots folder in Finder (restore = manual
|
||||
// copy-back, documented in the bundled help doc).
|
||||
CommandMenu("Help") {
|
||||
OpenBackupFolderButton()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -59,6 +66,16 @@ private struct OpenAboutButton: View {
|
||||
}
|
||||
}
|
||||
|
||||
/// #50: reveals `~/Library/Application Support/Museion/Backups` in Finder —
|
||||
/// restore is manual Finder copy-back in v1 (help doc describes it).
|
||||
private struct OpenBackupFolderButton: View {
|
||||
var body: some View {
|
||||
Button("Open Backup Folder") {
|
||||
NSWorkspace.shared.open(URL(fileURLWithPath: ProfileBackup.defaultBackupsRoot()))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Read-only mirror of the last completed check's state.json record (ticket #39).
|
||||
/// Reads the file when opened; never triggers a check; no re-check button.
|
||||
struct AboutEngineView: View {
|
||||
|
||||
Reference in new issue
Block a user