Create a Checkpoint
oc checkpoint create <sandbox-id>
Snapshots the current state of a running sandbox and uploads it to S3.
| Flag | Type | Default | Description |
|---|---|---|---|
--name | string | — | Checkpoint name (required) |
List Checkpoints
oc checkpoint list <sandbox-id>
Lists all checkpoints associated with a sandbox.
Output:
Restore a Sandbox
oc checkpoint restore <sandbox-id> <checkpoint-id>
Reverts an existing sandbox in-place to the state captured in the checkpoint. All changes made after the checkpoint was created are discarded.
Spawn a New Sandbox from a Checkpoint
oc checkpoint spawn <checkpoint-id>
Creates a brand-new sandbox from an existing checkpoint, leaving the original sandbox untouched. Useful for forking — run the same starting state in parallel.
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout | int | 300 | TTL for the new sandbox in seconds |
Delete a Checkpoint
oc checkpoint delete <sandbox-id> <checkpoint-id>
Permanently removes a checkpoint and its stored data from S3.
Alias
oc checkpoint can also be invoked as oc cp:
Examples
Save State Before a Risky Operation
Fork a Sandbox for Parallel Testing
Checkpoint vs Hibernate
| Checkpoint | Hibernate | |
|---|---|---|
| Original sandbox | Keeps running | Stopped |
| Can fork / clone | Yes | No |
| Restore target | Any sandbox | Same sandbox only |
| Use case | Branching, testing | Pause and resume |