Skip to content

bhatti snapshot create

Checkpoint a running sandbox to a named snapshot.

bhatti snapshot create <sandbox> —name <snapshot-name>

Captures memory, CPU registers, disk, and running processes from the running sandbox and saves them under <snapshot-name>. The source sandbox is briefly paused during the capture (typically a few seconds for a full snapshot, ~50ms for a diff snapshot if a previous one exists), then resumes.

The snapshot is stored on the server in the user’s snapshot directory (/var/lib/bhatti/snapshots/<user>/). Resume into a new sandbox with bhatti snapshot resume at any time.

--name is required. Names must match [a-zA-Z0-9][a-zA-Z0-9._-]{0,62} — same rules as sandbox names.

Terminal window
bhatti snapshot create dev --name pre-experiment
checkpoint "pre-experiment" created (512MB)
Terminal window
# Re-running with the same snapshot name overwrites the previous one
bhatti snapshot create dev --name daily
FlagDefaultDescription
--name <string>(required)Snapshot name.

See Global flags for --url, --token, --json, --timing, --data-dir.