shadowgraph_restore
Restore a ShadowGraph store from a JSON or SQLite backup, replacing every record and journal entry. Recovery only, never a merge; failures roll back.
Instructions
Replace the entire live store with the contents of a JSON or SQLite backup. Recovery only, never a merge: shadowgraph_purge removes one project, shadowgraph_backup makes the snapshot this reads. Destructive: every record and journal entry is replaced and a strictly greater revision installed. A failure is rolled back.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Server-side path of the backup to install. Required. It must match the configured storage backend: a JSON export cannot overwrite a SQLite database. The backup file itself is never rewritten. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Path the backup was read from. | |
| records | No | Records installed. JSON restores only. | |
| unchanged | No | True when source and destination were the same path and nothing was replaced. | |
| destination | Yes | Path of the store that was replaced. | |
| artifactCleanup | No | Cleanup outcome: status complete, incomplete, or unknown, plus any per-path errors. | |
| recoveryArtifact | No | Retained recovery copy, when one is left behind. | |
| rollbackArtifact | No | Retained rollback copy of the previous store, when one is left behind. | |
| unknownArtifacts | No | Artifact paths whose existence could not be determined, each { path, code }. | |
| retainedArtifacts | No | Rollback or recovery files still present after the restore. | |
| temporaryArtifact | No | Retained temporary file, when one is left behind. |