Skip to main content
See the snapshot guide for workflows and examples. Use snapshot objects or references on cloud. Local operations also accept a group head, group:member, or artifact path. Export methods save and save_to accept the keyword compatibility ("current" by default, or "0.7.8"). The historical target writes archive extension names understood by 0.7.8 and refuses required behavior it cannot preserve. It does not convert checkpoint identity or VM state. See archive targets. Use await ctx.snapshots.get(name) for a history and await ctx.checkpoints.get(id) for one checkpoint. Both collections retain the selected provider. Cloud supports individual disk checkpoints. Spawning from an exact remote checkpoint requires a managed ID. An explicit host-volume path restore selects the contents currently at that path.

Sandbox capture

sandbox.snapshot()

Available on Sandbox. name selects a new group; initial_checkpoint names its first member. dest_dir selects the parent storage directory. An existing group is refused. Omitted member names are generated; capture is disk-only by default. Set full=True to capture memory and device state, or record_integrity=True to record payload checksums. guest_flush accepts "auto", "required" or "skip"; omission uses Auto.
Artifact helpers formerly owned by Snapshot are now accessed through Checkpoint. Existing Checkpoint, builder, archive, ID, and verification type names remain; this public object rename does not rewrite persisted artifact IDs. Retained artifact helpers below also cover supported cloud workflows, where local group operations return unsupported.

Snapshot group methods

Snapshot.open()

Open an existing local history directory, including groups captured or imported outside the default snapshot store. Relative paths are anchored when the call is made, before deferred work; symlinks retain their filesystem meaning. The returned group retains its backend and path for later operations. Missing directories fail without creating a group or falling back to a same-name default-store group. Cloud backends do not support this local-directory operation. Use get (Get in Go) to select a bare group name from the default store.

Snapshot.get()

Open a named local history, including a headless group. Group operations on cloud return unsupported.

Snapshot.list()

List installed groups. Standalone artifacts are not treated as groups.

group.name

Read the retained group name without changing selection. Read-only property.

group.head()

Read the selected checkpoint once. The returned checkpoint retains that identity if head changes later. Returns None after explicit clearing.

group.checkpoints()

List member handles in stable ID order, including when no head is selected.

group.get_checkpoint()

Open one member by group-local name or stable checkpoint ID without changing head.

group.set_head()

Select an existing member by group-local name or stable ID. Selecting the current head reports a no-op. See head outcomes for dictionary fields.

group.clear_head()

Clear selection while preserving every member. Clearing an already headless group reports a no-op.

group.checkpoint()

Capture the bound sandbox and return the exact checkpoint and this operation’s head outcome. Imported or orphaned groups refuse capture; a same-name replacement sandbox never becomes the source. Omitted name is generated. guest_flush accepts "auto", "required" or "skip"; omission uses Auto. An append does not accept a destination directory.

group.spawn_sandbox()

Select the group head once and retain it throughout destination preparation. A headless group refuses spawning. The same methods on an exact checkpoint retain that checkpoint instead. Full checkpoints resume execution by default; disk checkpoints boot fresh. Destination options cannot change the source selector or backend. The keywords are the destination controls documented under Restore; unknown keywords are rejected.

group.spawn_sandbox_with_progress()

Local-only. Iterate the session for best-effort creation events, and await session.result() for authoritative completion. End of progress is not success. session.cancel() requests cancellation; consume the result to learn whether cancellation or completion won. The same destination keywords apply.

Save an exact checkpoint

The receiver selects one immutable checkpoint. Use the group’s optional head or exact-member lookup first; saving a group’s whole history is not implied. The no-options call writes a compressed .msb archive. save_to retains its explicit options form for compatibility. See the archive compatibility option below before sending output to an older reader.

Group archive import

Snapshot.load()

Import a batch atomically. maximum_disk_bytes limits total logical file bytes, including metadata, dependencies, and sparse holes. Each declared file disk must also fit. Omit it for no size limit. dest selects the parent storage directory; omission uses default storage. base supplies an external dependency snapshot or archive. set_head=True selects the unique imported tip even when it is not a fast-forward; ambiguous tips are refused.
files is a list of host paths. The keyword options are optional. Returns SnapshotImportResult with snapshot, checkpoints, added, reused, head_update, operation_id, and warnings properties. The result contains every unique supplied checkpoint, including bundled dependencies, in stable ID order. added and reused identify what was new versus already installed at publication; archive argument order does not select the head. The head outcome belongs to this operation and does not change when another operation edits the group. Multiple incomparable tips can commit a headless group; explicit head selection refuses ambiguous tips. A successful return confirms publication and catalog completion. Warnings describe deferred cleanup after commit. A structured import error distinguishes no publication, confirmed publication with a later failure, and an unknown outcome needing recovery. Import never binds a group to a source sandbox. See atomic import requirements for filesystem capabilities and maintenance requirements.

Group inspection

group.inspect()

Returns the group’s name, backend path, optional head, member count and optional saved source binding. Head and count come from one protected metadata read. Field names include checkpoint_count, source.recorded_name, source.current_name, source.database_uuid, source.sandbox_id; access them as dictionary keys, for example info["source"]["recorded_name"]. The source is absent for an unbound history; otherwise its status is available, missing_sandbox or different_catalog. Saved and current names distinguish renames; identity is the catalog UUID plus sandbox row ID, so deleting and recreating the same name does not rebind the group. Source availability is observed separately from group metadata and is not a guarantee of later capture readiness. Inspection does not change the selected head or create a missing catalog identity. Invalid metadata and database failures remain errors, rather than being reported as unbound. Obtain a member with get_checkpoint for its immutable metadata.

Group verification

group.verify()

await (await Snapshot.get("worker")).verify() checks all pinned members and returns a dictionary with group, state, checkpoints, and payload_hashes. States distinguish complete, incomplete, invalid, and empty (zero checkpoints checked). Every member includes id, path, state, optional report using the existing checkpoint verification fields, and specific findings. Headless groups can be verified; to check only head, obtain the optional checkpoint and call its verify(). Unrecorded checksums remain incomplete. Corruption, missing files, unsupported requirements, and operational failures raise SnapshotVerificationError with the full dictionary in error.report; failures before a meaningful report exists retain their ordinary exception. Shared physical payloads are hashed once per algorithm, independent copies are checked separately, and cancellation retains reader protection until hashing finishes. Selected members remain protected through hashing, including cancellation. Same-group captures, imports and head changes wait until verification finishes. Concurrent older removers must be stopped or upgraded; reads and sandbox execution can continue.

Whole-group removal

group.remove()

Removes the selected history and returns SnapshotRemoveResult with group, removed, head_update, and warnings. The member IDs and cleared-head outcome belong to this operation. Empty groups can be removed. Active readers and surviving external dependents refuse removal; there is no force bypass for an entire group. If publication commits but catalog cleanup fails, the call raises SnapshotGroupRemovalRecoveryError with result and detail. The attached result means removal already happened. Cleanup warnings after successful catalog reconciliation are returned in the result. An uncertain durability outcome is an error requiring recovery rather than a claimed successful removal. Later listing recovers pending cleanup without deleting a replacement group.

Exact checkpoint removal

Migration: static Python Snapshot.remove(reference, force=...) becomes Checkpoint.remove_by_reference(reference, force=...). The canonical Checkpoint.remove() is now an instance method. Legacy Checkpoint.remove(force=...) still returns None.
These are alternative calls, not successive removals of the same checkpoint. The instance method removes the retained checkpoint identity, refuses a replacement at the same address, and returns CheckpointRemoveResult with id, optional head_update, and warnings properties. The head outcome belongs to this operation; later head edits do not change it. Removing the head selects its surviving same-group parent or clears selection. Removing another member reports an unchanged head. Standalone artifacts have no head outcome. Force permits removal despite indexed children, but never bypasses reader protection. A repeated removal reports a missing checkpoint rather than fabricating another successful result. Backends or native libraries without exact-removal reporting return unsupported instead of falling back to deletion by name. If removal commits but catalog cleanup fails, the call raises SnapshotRemovalRecoveryError, with result and detail. Its result is authoritative: removal already happened. Recover the affected storage before retrying cleanup; do not assume an error means the checkpoint still exists.

Group options and results

SnapshotCreateResult

snapshotSnapshot
The newly created group.
checkpointCheckpoint
The exact first checkpoint created by this call.
head_updatedict[str, Any]
Head outcome from this operation; later selection changes do not alter it. See head outcomes.

CheckpointCaptureResult

checkpointCheckpoint
The exact checkpoint created by this append.
head_updatedict[str, Any]
Head outcome from this operation; later selection changes do not alter it. See head outcomes.

SnapshotImportResult

operation_idstr
Identifier of this import attempt.
snapshotSnapshot
The destination group.
checkpointslist[Checkpoint]
All unique supplied members, including bundled dependencies, in stable ID order.
addedlist[str]
Stable IDs newly installed by this operation.
reusedlist[str]
Stable IDs already installed at publication.
head_updatedict[str, Any]
Head outcome from this operation; later selection changes do not alter it. See head outcomes.
warningslist[str]
Cleanup warnings after confirmed publication and catalog completion; empty when none.

Head outcome

groupstr
Group name.
previousstr | None
Previous selected member ID; absent when headless.
headstr | None
Resulting selected member ID; absent after clearing or a headless import.
reasonstr
Selection reason: initialized, fast_forwarded, selected, unchanged, diverged, unknown_ancestry, ambiguous_candidates, cleared or parent_selected.
changedbool
Whether this operation changed the selected head.
Head outcomes are dictionaries. Capture and import results expose read-only properties; read the returned checkpoint directly instead of looking up the mutable group head.

Capture recovery

A failed capture can still have published its requested artifact before source recovery failed. SnapshotSourceRecoveryError preserves the source checkpoint recovery locator and, when publication completed, the published artifact’s kind, path, identity, digest and head_update. The head outcome belongs to that publication even if another operation changes the group afterward. Archive-only capture and older producers omit it; do not infer it by reading the current head. Inspect those details before retrying or removing the source. The error does not prove that the source is running or safely paused.

Guest writeback

Pass guest_flush=GuestFlush.REQUIRED to Checkpoint.create, Checkpoint.create_archive, source.fork, source.fork_many, or source.pause. Import GuestFlush from microsandbox. The default AUTO flushes live disk-only captures, but adds no optional flush to full captures, forks, or pause. SKIP retains mandatory storage barriers. A paused disk capture needs a matching prior flush; cloud rejects non-Auto policies. See guest flush policy reference.

Checkpoint

class

Returned by snapshot() · Checkpoint.create() · Checkpoint.open() · Checkpoint.list_dir()

Create, open, and manage snapshots. See properties for returned metadata.

Checkpoint.create()

Create a disk snapshot, or set full=True to include memory and execution state. name identifies a member within group; an omitted name is generated and an omitted group uses the source sandbox’s name. dest_dir selects the parent directory containing the group. from_sandbox names the sandbox to capture and is required.

Parameters

namestr
Checkpoint member name; generated when omitted.
from_sandboxstr
Name of the source sandbox. Local disk capture supports running, paused, stopped, and crashed sources. Cloud requires a stopped persistent source. Required.
dest_dirstr | os.PathLike[str] | None
Parent directory containing snapshot groups. Defaults to the snapshots directory.
labelsdict[str, str] | None
User-supplied local labels stored outside the identity-bearing descriptor.
forcebool
Must remain False for installed group members. Since v0.7, True raises InvalidConfigError even when the name does not exist. Use a new or generated member name, or explicitly remove the existing member before recreating it. See the v0.6 upgrade example. Direct archive capture supports overwriting its output file.
record_integritybool
Record an integrity hash in the manifest so the artifact can be verified later. Default False.
fullbool
Local-only when True: capture disk, memory, execution, and device state from a running or paused sandbox. Default False captures disk state; locally, the source can be running, paused, stopped, or crashed. Cloud requires False and a stopped persistent source.
guest_flushGuestFlush | None
Guest writeback policy. Omitted selects AUTO; see guest writeback.

Returns

The captured snapshot.

Checkpoint.create_archive()

Capture directly into an archive without installing a local snapshot.

Checkpoint.open()

Open an existing artifact by group head, group:member, or path. This validates metadata without reading the full upper file. Use verify() for content checks.

Parameters

path_or_namestr
Group head, group:member, or artifact directory path.

Returns

The opened snapshot.

Checkpoint.get()

Look up a handle by group head, group:member, stable snapshot ID, descriptor digest, or artifact path. Global IDs and digests must resolve unambiguously.

Parameters

name_or_digeststr
Group head, group:member, stable snapshot ID, descriptor digest, or artifact path.

Returns

Operational snapshot with metadata loaded on demand.

Checkpoint.list()

List snapshots visible through the active backend. Local uses its index; cloud lists managed snapshots. Host-volume artifacts are opened explicitly by reference.

Returns

Indexed snapshot resources.

Checkpoint.list_dir()

Walk a local directory and parse each subdirectory’s manifest. Does not touch the local index, useful for inspecting external snapshot collections. Skips entries that don’t look like snapshot artifacts. Cloud raises UnsupportedError.

Parameters

dirstr | os.PathLike
Directory to scan for artifacts.

Returns

One snapshot per valid artifact directory.

Checkpoint.remove()

Remove a snapshot through the active backend. Locally, removal also updates the index and refuses indexed children unless force=True.

Parameters

path_or_namestr
Group head, group:member, or artifact path.
forcebool
Remove even if the snapshot has indexed children. Default False.

Checkpoint.reindex()

Walk dir (default: configured snapshots dir) and rebuild the local index. Returns the number of artifacts indexed. Cloud raises UnsupportedError.

Parameters

dirstr | os.PathLike | None
Directory to scan. Default: the configured snapshots directory.

Returns

int
Number of artifacts indexed.

Checkpoint.save()

staticasync
Bundle a snapshot into a .msb archive. The existing snapshot manifest is archived as-is; create the snapshot with recorded integrity when the archive will cross a trust boundary.

Parameters

name_or_pathstr
Group head or group:member or artifact path to save.
outstr | os.PathLike
Output archive path.
with_parentsbool
Include the snapshot’s parent chain. Default False.
with_imagebool
Include the pinned base image. Default False.
plain_tarbool
Write an uncompressed .tar instead of .msb. Default False.


Checkpoint.load()

staticasync
Unpack a snapshot archive (.msb or .tar) into the selected or generated group. The returned handle’s group identifies the group and head_update reports the head selection outcome. Structural and archive-entry checks run during import; recorded payload integrity is preserved for explicit verify(). Compression is detected from magic bytes.

Parameters

archivestr | os.PathLike
Archive path (.msb or .tar).
deststr | os.PathLike | None
Destination directory. Default: the configured snapshots directory.

Returns

Handle to the loaded snapshot.

Checkpoint.load_many()

Import archives as one batch. Returns handles in input order. Dependencies resolve from the batch, the named group, or an explicit base; input order does not matter. All members are validated before publication.

Checkpoint.group_head()

Read the selected ID from a local group, or explicitly set it to an installed member’s stable ID. A headless group returns an absent ID. A missing group or qualified group name raises an error. The write returns the previous and current IDs, reason and change flag. See group selection.

Import options

Options for load() and load_many(). With divergent tips, the existing head stays selected; a new group has no head. Select a member explicitly. Identical members may be reused; conflicting identities fail. See archive imports.

Checkpoint methods

snap.save_to()

Bundle this snapshot through the backend retained when it was created or opened. This avoids resolving its reference through a possibly different current default backend. Cloud raises UnsupportedError.

snap.copy_to()

Create a new archive from this snapshot’s disk data while replacing its labels and integrity metadata. The source snapshot is unchanged. Cloud raises UnsupportedError when save() is awaited.

snap.verify()

Verify the snapshot’s complete state closure. File state recomputes recorded upper-layer integrity. Checkpoint state validates the complete checkpoint closure and returns checkpoint={"kind": "verified", "root": ...} in the report.

Returns

dict[str, Any]
Verification report. The upper.kind field is “not_recorded” when no integrity hash was stored, or “verified” with the recomputed digest.
The report shape:

snap.destroy()

Instance deletion of a remote path-based snapshot returns Unsupported until the provider supports atomic conditional deletion. Explicit path-selected static removal remains available. Managed remote snapshot deletion uses its captured server ID; local deletion retains its identity checks. Force does not bypass this restriction.
Remove this installed snapshot copy and its index row using the handle’s stored artifact path. Other groups containing the same snapshot ID or digest remain unchanged. Refuses if the snapshot has indexed children unless force=True.

Parameters

forcebool
Remove even if the snapshot has indexed children. Default False.

handle.save_to()

Bundle the referenced snapshot through the backend retained by the handle. Cloud raises UnsupportedError.

Sandbox

handle.checkpoint()

Checkpoint this sandbox into its default group with the given member name. Local live disk captures preserve the source’s running or paused state. Cloud requires a stopped persistent source. Use the returned artifact path or sandbox:member to open it later. Called on a Sandbox, obtained from Sandbox.get().

Parameters

namestr
Member name within the source sandbox’s group.

Returns

The captured snapshot.

Forking

Fork a running or paused local sandbox to create a child with copy-on-write memory. The source returns to its previous state, and each child needs an unused name. Sandbox has the same methods. See the forking guide for backend limits and disk bindings.

fork()

Create one child from the current execution state.

fork_many()

Capture once for all names and return outcomes in input order. Each outcome has name, plus a started sandbox or an error; the other field is None. Validation or capture errors raise for the whole call; a child startup error leaves successful siblings running. Stop successful children when finished. record_integrity records disk hashes. guest_flush defaults to GuestFlush.AUTO; see guest writeback for policy details. volumes rebinds captured disks; forks cannot add new block devices, and batch children cannot share a writable disk image. See fork disk bindings. branch() and branch_many() remain deprecated aliases that emit DeprecationWarning; BranchOutcome aliases ForkOutcome.

Restore

Restore into a new detached sandbox. Disk boots fresh; full resumes execution. See restore examples and progress.
cow_memory=True
Share unchanged full-snapshot memory.
forked=True
Deprecated alias for the same CoW memory policy; see migration notes.
disk_only=True
Boot only the saved disk.
snapshot_base
Supply an archive dependency.
Sandbox.restore()
Return the restored sandbox.
Sandbox.restore_with_progress()
Return a PullSession; await its result.

init

Select guest PID 1 for disk boot using an absolute guest executable path, "auto", or the existing InitConfig(cmd, args, env) form. Available on group/checkpoint spawn_sandbox, progress variants, and Sandbox.restore. Full-memory resume rejects an explicit choice, including "auto"; select disk_only=True for a new boot.

max_cpus and max_memory

Set the maximum possible CPU count and memory ceiling in MiB for a disk boot, including disk_only=True. Values must be positive and at least the requested capacity; full-memory resume requires the captured ceilings exactly. None leaves a ceiling unspecified. Available on group/checkpoint spawn and progress variants as well as restore.

Destination command defaults

Use workdir, shell, entrypoint, cmd and env keyword arguments to configure new commands in the destination. They work for disk boots and full resumes without changing captured processes or starting a workload during restoration. An explicit empty entrypoint or CMD clears that default; omission keeps existing resolution. Environment defaults combine with per-command overrides through the ordinary SDK rules. Guest working directories must exist. These are explicit destination settings, not automatically saved snapshot configuration. Unsupported native bindings reject new explicit options before dispatch.

labels

Attach destination sandbox labels. Source snapshot labels remain unchanged. Available on group/checkpoint spawn, progress variants and restore; normal sandbox label validation applies.

pull_policy

Control retrieval of the snapshot’s recorded image digest. The default if-missing and explicit never can use complete local/archive content offline. always revalidates that exact digest through its registry, even when cached, and fails if the registry cannot provide it. This never follows the original mutable tag or changes the source snapshot. Explicit use requires an updated native binding and is refused before dispatch when unsupported.

proxy

Select the destination host proxy before disk boot or full-memory resume. This preserves the captured guest interface and does not inject guest trust material. SOCKS5 passwords use destination environment references; resolved passwords are not saved in snapshot configuration. None leaves destination resolution unchanged.

hostname

Set a nonempty guest hostname of at most 64 UTF-8 bytes for disk boot. Full-memory resume refuses replacement even when the requested name matches the source. None leaves the choice unspecified. Image, replacement, and automatic startup-command options are not accepted; entrypoint/CMD configure future commands only. Full restore requires matching CPU and memory settings, keeps captured network devices, and cannot apply a new guest security profile. Use disk-only restore to change these. Restore rejects missing external filesystems (and, for full restore, additional disks) by default. Use allow_missing_resources=True to resume with unavailable devices (full restore records warnings). This is separate from strict/relaxed validation of supplied mappings; inheritance does not waive missing backing. Root and owned storage remain required.
cpus, memory
CPU count and memory in MiB. Full restore must match capture.
network_policy
Replace host traffic filtering; guest DNS and TLS settings stay unchanged.
max_connections
Concurrent TCP limit; zero means unlimited.
disable_network
Remove the NIC. Rejected for full snapshots that captured one.
security
Guest security profile. Disk boot only, including an explicit default profile.
max_duration, idle_timeout
Lifetime and idle limits. Omitted means unlimited; zero expires immediately.
guest_clock
”sync” or “off”; omission preserves a recorded policy, defaulting to sync when absent.
ports
Bind destination TCP or UDP ports.
vsock
Bind destination vsock endpoints.
user, log_level
Default user for new execs and host runtime log level.
dangerously_inherit_resources
Explicitly inherit host resources. Disabled by default.
external_mount_policy
Validate supplied filesystem mappings: strict (default) or relaxed. Does not grant access.
Omitted controls retain destination defaults. Durations are non-negative finite seconds, rounded up. Network policy accepts NetworkPolicy, not Network. captured_volumes contains guest paths. Full capture records the source clock policy; current disk capture does not. An explicit sync policy overrides a saved off policy. The same option is available on group and checkpoint spawn, including progress variants. Clock selection controls guest wall-clock synchronization. Unsupported native SDKs or runtimes refuse unsupported explicit selection before launching the destination.

restore.volumes

Keyword option for Sandbox.restore() and restore_with_progress(). Map host volumes to guest paths.

restore.captured_volumes

Select captured private volumes by guest path. Accepted by both restore methods.

restore.allow_missing_resources

Allow unavailable external filesystems or additional disks. Full restore records warnings; root and owned storage remain required. Disabled by default. This does not relax validation of supplied mappings. Accepted by both restore methods.

Compaction

Compact a local sandbox’s root or owned disks. See compaction for examples and recovery requirements.
disk
Select one owned disk by guest path; / selects the root.
root_disk_only
Select only the root. Cannot combine with the disk selector.
layers
Oldest sealed layers to merge, including the base. Minimum two; omit for all. Excludes the writable layer.
dry_run
Preview without changing storage.
Defaults to the root and owned data disks; excludes named/external volumes and directories. Requires a running or fully stopped local sandbox. Fewer than two sealed layers means no change; no eligible disks returns an empty result with zero counts. Results include aggregate counts and per-disk entries keyed by guest_path. materialized_bytes counts copied bytes, not reclaimed space. Times are microseconds: per-disk total_us covers preparation; aggregate total_us also includes switching; pause_us measures the shared VM pause.

Types

Checkpoint properties

class
A fully parsed backend-neutral snapshot. Properties are read-only attributes.

checkpoint.id

Stable opaque snapshot identity

checkpoint.path

Local artifact directory; raises UnsupportedError on cloud

checkpoint.reference

Stable backend-relative restore reference

checkpoint.reference_kind

How the selected backend resolves the reference

checkpoint.digest

Canonical descriptor digest (sha256:hex), separate from the stable ID

checkpoint.size_bytes

Backend-reported stored payload size in bytes

checkpoint.image_ref

Image reference the snapshot was taken from

checkpoint.image_manifest_digest

OCI manifest digest of the pinned image

checkpoint.state_kind

File-backed or checkpoint-backed state. See SnapshotStateKind.

checkpoint.format

On-disk format for file-backed state. See SnapshotFormat.

checkpoint.scope

Captured state scope. See SnapshotScope.

checkpoint.fstype

Filesystem type for file-backed state (e.g. "ext4")

checkpoint.checkpoint_id

Checkpoint identifier for checkpoint-backed state

checkpoint.checkpoint_manifest_digest

Checkpoint manifest digest for checkpoint-backed state

checkpoint.parent

Parent snapshot’s digest, or None for a root

checkpoint.created_at

RFC 3339 timestamp

checkpoint.labels

User-supplied labels

checkpoint.source_sandbox

Best-effort source-sandbox name

checkpoint.save_to()

Bundle through the backend retained by this snapshot

checkpoint.copy_to()

Configure a copied archive with replacement metadata. See SnapshotCopyBuilder.

checkpoint.verify()

Recompute and check the upper-layer integrity hash. See verify()

SnapshotCopyBuilder

Returned by Checkpoint.copy_to(). Setters mutate the builder and return it so calls can be chained.

copy.labels()

Replace all labels in the copied manifest

copy.record_integrity()

Compute integrity when true, or omit it when false

copy.save()

Write the configured archive

Checkpoint

class
Lightweight handle returned by the active backend. Properties are read-only.

handle.id

Stable opaque snapshot identity

handle.path

Local artifact directory; raises UnsupportedError on cloud

handle.digest

Canonical descriptor digest, separate from the stable ID

handle.name

Convenience alias

handle.parent_digest

Parent snapshot digest, or None for a root

handle.image_ref

Image the snapshot was taken from

handle.state_kind

File-backed or checkpoint-backed state. See SnapshotStateKind.

handle.format

On-disk format for file-backed state. See SnapshotFormat.

handle.scope

Captured state scope. See SnapshotScope.

handle.fstype

Filesystem type for file-backed state

handle.checkpoint_manifest_digest

Checkpoint manifest digest for checkpoint-backed state

handle.size_bytes

Backend-reported stored payload size, when known

handle.locality

Artifact locality reported by the index

handle.availability

Artifact availability reported by the index

handle.migration_state

Current migration state

handle.migration_error_code

Migration error code, when migration failed

handle.created_at

ms since Unix epoch

handle.reference

Stable backend-relative restore reference

handle.reference_kind

How the selected backend resolves the reference

handle.open()

Load full metadata. See open()

handle.remove()

Delete the artifact and its index row. See remove()

handle.save_to()

Bundle through the backend retained by this handle

SnapshotStateKind

Checkpoint state representation.

SnapshotStateKind.FILE

File-backed upper-layer state

SnapshotStateKind.CHECKPOINT

Checkpoint-manifest-backed state

SnapshotFormat

On-disk format for file-backed snapshot state.

SnapshotFormat.RAW

Raw disk image

SnapshotFormat.QCOW2

QEMU copy-on-write v2 image

SnapshotScope

Captured snapshot state scope.

SnapshotScope.DISK

Disk-only state

SnapshotScope.FULL

Disk, memory, and device state