Skip to main content
Alias: oc cp

oc checkpoint create <sandbox-id>

Create a named checkpoint of a running sandbox. HTTP API →
--name
string
required
Checkpoint name
oc cp create sb-abc --name before-migration

oc checkpoint list <sandbox-id>

List checkpoints for a sandbox. HTTP API → Output columns: ID, NAME, STATUS, SIZE, CREATED

oc checkpoint restore <sandbox-id> <checkpoint-id>

Revert a sandbox in-place to a checkpoint. All changes since the checkpoint are lost. HTTP API →

oc checkpoint spawn <checkpoint-id>

Create a new sandbox from a checkpoint (fork). HTTP API →
--timeout
int
default:"300"
Idle timeout for the new sandbox
ID=$(oc cp spawn cp-xyz --json | jq -r '.sandboxID')
oc exec "$ID" --wait -- echo "forked sandbox ready"

oc checkpoint delete <sandbox-id> <checkpoint-id>

Delete a checkpoint. HTTP API →