# Snapshots and durability | Borealis Docs

> Distinguish Runtime v2 recovery checkpoints, reusable templates and legacy filesystem snapshots.

- Canonical URL: https://borealishq.io/docs/snapshots/
- Markdown mirror: https://borealishq.io/docs/snapshots/index.html.md

Distinguish Runtime v2 recovery checkpoints, reusable templates and legacy filesystem snapshots.

## Runtime v2 durability

Runtime v2 checkpoints capture supported machine execution state, including memory and disks, for recovery of the same logical VM. A committed checkpoint is different from a hot pause: hot pause retains the live incarnation but does not itself create a durable recovery point.

Public MicroVM allocations default to an ephemeral policy (`runtime.checkpointPolicy: Disabled`). A permanent policy (`AgentTurn`) enables automatic checkpoints when idle. Existing machines retain their stored policy; always inspect the actual machine instead of inferring durability from its age or name.

| State | What it establishes |
| --- | --- |
| Ephemeral / checkpointing disabled | No automatic durable recovery guarantee for current work. |
| Hot suspended | The current incarnation is paused; retained memory can resume if it survives. |
| Permanent, capture pending | Protection is being established; a new checkpoint is not yet confirmed. |
| Protected with a committed generation | Recovery can use that committed generation, subject to compatible capacity. |

An external database, connection or side effect is not rolled back by restoring a VM. Applications must reconnect and handle retries appropriately.

## Inspect or change durability

Read `/api/v1/sandboxes/{sandboxId}/runtime/durability`. An authorised change uses the same route with POST and a UUID `Idempotency-Key`:

```json
{ "mode": "permanent" }
```

Use `ephemeral` to disable future automatic captures. Changing policy retains the computer and does not change its retention period. Promotion waits for active work and a fresh committed checkpoint before reporting `protected: true`; follow the accepted operation or read durability again.

Changing back to ephemeral can leave historical checkpoints, but those do not establish continuity for subsequent work. A lost ephemeral machine cannot be protected after the fact.

## Reuse a machine as a template

An ordinary checkpoint belongs to one logical VM. To create another VM from reusable state, use the [runtime template workflow](/docs/images-and-templates#distinguish-templates-from-recovery-checkpoints). Review the source's contents and eligibility before publishing a template, then use its exact published revision.

## Legacy environment snapshots

For older container sandboxes, an environment snapshot preserves the container root filesystem and, when configured, one supported snapshot-eligible managed volume. It does not capture process memory or arbitrary mounts. `/workspace` files use the separate [workspace transfer](/docs/workspace-transfers) flow.

The legacy CLI workflow is:

```sh
borealis snapshot create SANDBOX_ID
borealis snapshot operation get SANDBOX_ID REQUEST_ID --json
```

Keep the returned request and snapshot IDs and wait for completion. A new legacy sandbox can use `sourceSnapshotId`; import its workspace separately and restart services. These commands do not replace Runtime v2 checkpoint or template operations.

## Plan application recovery

For stateful applications, coordinate writes or use the application's own backup mechanism when you need an application-consistent backup. Keep independent backups for data that must survive resource deletion.

Inspect the latest committed generation and time before relying on recovery. See [Sandbox lifecycle](/docs/sandboxes) for pause, wake and stop, and [Workspace transfers](/docs/workspace-transfers) for file exports.
