In short.
E2B's filesystem-only snapshots guide teaches developers how to preserve sandbox files, with the catch that resuming requires a reboot and discards previous memory and running processes. It documents the mode option from version 2.55.0 of both SDKs, project-access restrictions and incompatibility with traffic-triggered auto-resume. Smaller, faster snapshot capture comes with startup delays and service restarts. Pricing and measured performance are unknown, and no examples were executed.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes the complete selected page at [https://docs.e2b.dev/sandbox/filesystem-only-snapshots.md], including SDK version and deprecation notices, snapshot creation, manual and timeout pause, project-access refusal, validation, networking, reboot behavior and envd-update limitations. Linked pages are excluded. Separate SDK implementation, pricing and licence materials were not supplied. No code was executed; actual availability, performance, reliability and billing were not assessed.
The overview
Identity
This is E2B's documentation guide for filesystem-only sandbox snapshots [https://docs.e2b.dev/sandbox/filesystem-only-snapshots.md]. It explains an E2B persistence feature through JavaScript/TypeScript and Python examples, rather than providing a separate application or library.
Assessment
The guide is useful when files contain the state that must survive: a development workspace, build checkpoint or reusable starting environment. It gives concrete API calls and explains their operational consequences.
The main trade-off is between lighter capture and recovery work. The page describes snapshots as smaller and faster to create without memory, while resume can take several seconds and requires services to start again. It supplies no benchmark measurements or reliability results.
Users
The intended readers are developers integrating E2B sandboxes into applications or development workflows. Suitable uses include saving workspace files between sessions, retaining build or scratch data, and creating a common filesystem image for multiple sandboxes.
Applications that need live computation, memory-only caches or a service that wakes on incoming traffic have requirements this mode does not meet. Readers should understand basic SDK calls and how their application starts after a reboot.
Capabilities
Filesystem-only capture is available for explicit snapshot creation, manual pause and timeout-driven auto-pause. A captured filesystem can be resumed or used to create new sandboxes.
Creating a snapshot briefly pauses the source sandbox during capture, then lets it continue running. Pausing saves the filesystem and drops memory. Snapshot naming, listing, deletion and creation of sandboxes from snapshots are described as otherwise unchanged.
Using it
Requirements
The mode option requires JavaScript package e2b 2.55.0 or Python package e2b 2.55.0 or later, according to the page. Both SDKs export the SnapshotMode type. Earlier SDKs expose filesystem-only pause through keepMemory: false or keep_memory=False; these flags remain supported but are deprecated.
Filesystem-only snapshots must be enabled for the E2B project. The documented snapshot-creation refusal is HTTP 400 with code snapshot_filesystem_only_disabled; the source sandbox keeps running and no snapshot is created. Account setup, credentials, quotas and supported runtime environments are not specified here.
Mechanism
A full snapshot saves disk and memory, allowing running processes and in-memory state to be restored. A filesystem-only snapshot saves disk without a memory image. Using it boots the sandbox from its saved filesystem, so files persist while previous processes, variables and memory-only caches are lost.
Connections to clients outside the sandbox drop during pause in both modes. With filesystem-only resume, services must also start again before clients reconnect. Boot runs the template's startup units, and initial sandboxes may read uncached filesystem blocks from storage.
The reboot can also bring a sandbox onto a newer envd, E2B's in-sandbox daemon, while retaining its files. This is a possibility described by the page, not a guaranteed version upgrade.
Setup
For manual pause in Python, create a sandbox with Sandbox.create(), write required state to disk, then call sbx.pause(mode="filesystem"). Resume explicitly with sbx.connect(). The JavaScript equivalent is await sbx.pause({ mode: 'filesystem' }), followed by await sbx.connect(). Arrange for required application services to start after the reboot.
For timeout-driven pause, use the object form of the lifecycle configuration. JavaScript uses onTimeout: { action: 'pause', mode: 'filesystem' }; Python uses on_timeout with action and mode entries. Filesystem-only mode cannot be combined with autoResume or auto_resume.
Manual pause mode is chosen per call. After a filesystem-only resume, a later pause() returns to the default full mode unless filesystem-only mode is specified again.
Example
The documented Python example writes /home/user/data.txt and starts a background sleep 600 process. It then calls sbx.create_snapshot(mode="filesystem") and creates another sandbox with Sandbox.create(snapshot.snapshot_id).
The expected result is that the new sandbox contains the saved file without restoring the background process. The source sandbox continues running after capture. These are the documentation's stated outcomes; the example was not executed.
Assessment & evidence
Limitations
Filesystem-only snapshots cannot wake on inbound traffic. They require explicit connect(), and previous application processes must be started again. The page advises expecting several seconds of boot time; a template with slow startup units retains that startup delay.
The SDK rejects combining mode with deprecated keepMemory or keep_memory options. It also rejects mode on a kill lifecycle action: TypeScript catches that combination through its types, while Python raises InvalidArgumentException.
The envd-update procedure requires an already resumable sandbox. A snapshot that fails to resume cannot be recovered through this procedure.
Reasoning
The practical decision depends on where valuable state lives. If everything needed for the next session is written to disk and startup is repeatable, filesystem-only capture matches that requirement. If valuable work exists only in running processes or memory, those parts will be lost.
Separating capture time from startup time matters: faster snapshot creation does not establish faster recovery. Assess both stages against the application's needs, including service startup and client reconnection.
Alternatives
The directly documented alternative is E2B's default full snapshot. Omitting mode, or setting it to 'full', preserves both disk and memory, including running processes and in-memory state. External client connections still drop during pause.
Full snapshots remain available when filesystem-only snapshot creation is disabled for a project. The supplied page does not establish comparisons with other sandbox providers or persistence systems.
Evidence
The source is the complete E2B documentation page [https://docs.e2b.dev/sandbox/filesystem-only-snapshots.md]. It includes SDK examples, a comparison of snapshot modes, a project-access error table, validation rules and operational caveats.
The examples illustrate intended behavior. No code was executed, and their displayed outputs, performance claims and service behavior were not independently verified.
Access & freshness
Costs
The page provides no prices, billing units, storage charges or pause-and-resume charges. Total operating cost is unknown.
Removing the memory image is described as reducing snapshot size and capture time. Any resulting monetary savings, including the effect of reboot time on charges, are unknown.
Rights
The supplied page does not state licence terms for its prose or code examples, redistribution permissions or commercial-use terms. Those rights, and any separate SDK licence conditions, are unknown from this evidence.
Freshness
The page was captured on 23 November 2026 at 23:30:49.983 UTC. It identifies SDK version 2.55.0 as the starting point for mode support in both languages and marks the older memory flags as deprecated.
No publication or last-update date is supplied. The latest SDK release and feature availability in a particular project are unknown.
Actions
Before adopting this mode, identify which required state is written to disk and which exists only in memory. Confirm SDK compatibility and project access, and prepare a repeatable startup procedure for services.
In a disposable sandbox, verify that required files survive, previous processes are absent and explicit connect() restores a usable environment. Measure capture time and reboot-to-ready time separately. These checks remain unperformed.
Use full snapshots when restoring live execution state is required. For the documented envd-update flow, first resume the sandbox, pause it filesystem-only, then resume again; this flow requires a sandbox that can already resume.
