Skip to main content
Snapshots let you capture the filesystem and/or memory of a Sandbox as an immutable artifact. You can then use this artifact to create new Sandboxes with that same captured state. Use snapshots when you want to:
  • Fork Sandboxes to test different variations of code
  • Initialize Sandboxes with existing state for faster cold starts
  • Save a reproducible environment you can return to later

Creating a Filesystem Snapshot

Using Filesystem Snapshots

You can use Snapshots as a base image for any other abstraction or Sandbox on Beam, using Image.from_id:

Creating a Memory Snapshot

You can also create a memory snapshot of a running Sandbox, which will capture the state of the sandbox’s memory - including all running processes and exposed ports.

Using Memory Snapshots

You can use memory snapshots as a starting point for a new Sandbox, using Sandbox().create_from_memory_snapshot: