shadowgraph_backup
Creates a full store snapshot to a server path, preserving state before destructive operations. Overwrites destination, creates parent directories, and commits a revision.
Instructions
Write a consistent snapshot of the whole store to a filesystem path on the server. Take one before shadowgraph_purge or shadowgraph_restore; shadowgraph_redact shares data without writing a file. Overwrites any existing file at destination without warning, creates parent directories, and commits a revision.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| destination | Yes | Server-side path to write the snapshot to. Required. An existing file there is overwritten; parent directories are created. Use the storage backend’s own extension, .json for JSON stores and .db for SQLite. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Path of the live store the snapshot was taken from. | |
| destination | Yes | Path the snapshot was written to. |