123oc checkpoint create sb-abc123 --name before-migration # or using the shortcut: oc cp create sb-abc123 --name before-migration
processing and transitions to ready.123oc cp list sb-abc123 # ID NAME STATUS SIZE CREATED # cp-7f3a1b2c before-migration ready 128 MB 2025-01-15T10:30:00Z
1234567# Spawn two independent sandboxes from the same checkpoint ID1=$(oc cp spawn cp-7f3a1b2c --json | jq -r '.sandboxID') ID2=$(oc cp spawn cp-7f3a1b2c --json | jq -r '.sandboxID') # Run different experiments oc exec $ID1 --wait -- ./experiment-a.sh oc exec $ID2 --wait -- ./experiment-b.sh
1oc cp restore sb-abc123 cp-7f3a1b2c
12oc cp list sb-abc123 oc cp delete sb-abc123 cp-7f3a1b2c
12345oc cp create sb-abc123 \ --name autosave \ --kind disk_only \ --retention-policy delete_oldest \ --retention-max-count 100
| Checkpoint | Hibernate | |
| Original sandbox | Keeps running | Stopped |
| Can fork | Yes — unlimited new sandboxes | No |
| Use case | Branching, parallel testing | Pause and resume, cost savings |