How Snapshots Work
A snapshot is a point-in-time copy of a workspace’s entire filesystem. When you create a snapshot:- The workspace must be stopped (not running)
- Rigbox copies the workspace’s root filesystem image
- The snapshot is stored with sparse file optimization (only non-zero blocks are saved)
- You can restore the snapshot at any time to roll back the workspace to that exact state
Snapshots capture disk state only - they do not capture running processes or in-memory state. Stop your workspace cleanly (let services shut down gracefully) before snapshotting.
Create a Snapshot
Stop the workspace first, then create a named snapshot. Step 1 - Stop the workspace:id (e.g. snap_abc123) and size_bytes.
See the Create Snapshot API reference for the full response schema.
List Snapshots
For a Specific Workspace
--output json) returns:
All Your Snapshots
To see snapshots across all your workspaces, omit the--workspace filter:
Restore a Snapshot
Restoring a snapshot replaces the workspace’s current disk state with the snapshot’s saved state.Delete a Snapshot
Deleting a snapshot is permanent and frees the associated storage. This does not affect the workspace itself.
Storage and Sizing
Snapshots use sparse file optimization. This means only disk blocks that actually contain data are stored - empty space is not copied.
The actual size depends on how much data is written to the filesystem. A workspace with a 10 GB disk but only 3 GB of actual files will produce a snapshot close to 3 GB.
Use Cases
Pre-Demo Checkpoint
Snapshot before a live demo so you can instantly roll back if something breaks.Experiment Branching
Try a risky change without fear. Snapshot first, experiment freely, restore if it fails.Disaster Recovery
Create regular snapshots as backups for critical workspaces.Reproducibility
Share a known-good workspace state with your team. Create a snapshot at a stable point, and teammates can restore from it to start from the exact same environment.Complete Workflow Example
Here is a full checkpoint-and-restore flow.rig workspace stop and rig workspace start poll status internally, so there’s no manual wait loop.
Limitations
- Workspace must be stopped - you cannot snapshot or restore a running workspace
- Disk state only - running processes and in-memory data are not captured
- Same workspace only - you cannot restore a snapshot from workspace A into workspace B
- Storage costs - snapshots consume storage proportional to their size; clean up old snapshots you no longer need
Next Steps
- Setup Scripts - automate the setup that leads to a snapshot-worthy state
- Service Specs - define services that auto-start after a snapshot restore
- Bring Your Own Keys - configure AI providers for workspaces you snapshot