Skip to main content
Snapshots capture the full disk state of a workspace - every file, installed package, database, and configuration. You can use them to checkpoint your work, experiment safely, or recover from mistakes.

How Snapshots Work

A snapshot is a point-in-time copy of a workspace’s entire filesystem. When you create a snapshot:
  1. The workspace must be stopped (not running)
  2. Rigbox copies the workspace’s root filesystem image
  3. The snapshot is stored with sparse file optimization (only non-zero blocks are saved)
  4. 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:
Step 2 - Create the snapshot:
This prints the new snapshot’s id (e.g. snap_abc123) and size_bytes. See the Create Snapshot API reference for the full response schema.
Creating a snapshot while a workspace is running will return an error. Always stop the workspace first.

List Snapshots

For a Specific Workspace

The JSON form (--output json) returns:

All Your Snapshots

To see snapshots across all your workspaces, omit the --workspace filter:
See the List Snapshots API reference for pagination and filtering options.

Restore a Snapshot

Restoring a snapshot replaces the workspace’s current disk state with the snapshot’s saved state.
Restoring a snapshot overwrites the current workspace disk state. Any changes made since the snapshot was taken will be lost. If you want to keep the current state, create a new snapshot before restoring.
After restoring, start the workspace to boot into the restored 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.
Check the size_bytes field in the snapshot response to see the actual storage used.

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.
If you automate snapshots, consider cleaning up old ones periodically to manage storage. Keep the last N snapshots and delete older ones.

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