oc cpoc checkpoint create <sandbox-id>query --namestringrequiredquery --retention-policystringdefault: nonedelete_oldest to delete the oldest eligible checkpoint before creating this one.query --retention-max-countintdefault: 10--retention-policy delete_oldest is set. Must be between 1 and 10 for full checkpoints, or 1 and 100 for disk-only checkpoints.1oc cp create sb-abc --name before-migration
12345oc cp create sb-abc \ --name autosave \ --kind disk_only \ --retention-policy delete_oldest \ --retention-max-count 100
oc checkpoint list <sandbox-id>ID, NAME, STATUS, SIZE, CREATEDoc checkpoint restore <sandbox-id> <checkpoint-id>oc checkpoint spawn <checkpoint-id>query --timeoutintdefault: 30012ID=$(oc cp spawn cp-xyz --json | jq -r '.sandboxID') oc exec "$ID" --wait -- echo "forked sandbox ready"
oc checkpoint delete <sandbox-id> <checkpoint-id>