Skip to content

Persistent disk and snapshots

Last updated: 30 November 2026 · API v1 (beta)

Only the /workspace directory is persistent on a machine. Even if you delete the machine, the files on the persistent disk stay on your new machine. A snapshot is a copy of the machine's whole disk and is kept in a separate place.

Persistent /workspace

  • Every user has one persistent disk (/workspace). On the Beta package its capacity is 20 GB per user.
  • The persistent disk is attached to only one machine at a time.
  • A Persistent disk badge appears on the page of the machine the disk is attached to. On a machine opened while the disk is attached to another machine, /workspace is Temporary and the badge shows this.
  • Files in a temporary /workspace are gone when the machine is deleted. They are not written to the persistent disk.
  • Only /workspace is persistent. Other directories and packages installed with apt are gone when the machine is deleted. The tools you choose when you create a machine are installed automatically on every start.
  • Docker images and volumes are kept on the persistent disk (in the hidden /workspace/.hb-docker folder) and count towards its capacity.

Keep your important files under /workspace.

Snapshots

A snapshot takes the machine's disk image: the whole disk is copied, installed software included.

  • You take a snapshot from the machine's page or from the Snapshots page. In the API it is also taken with POST /v1/snapshots.
  • The Beta package allows at most 5 snapshots per organization.
  • When a snapshot is ready, a snapshot.created webhook event arrives (Webhooks).
  • You open a new machine from a snapshot. This machine's /workspace is temporary: the copied disk is not attached to the persistent disk and is gone when the machine is deleted.
  • You cannot choose tools on a machine opened from a snapshot.
  • Taking and deleting snapshots in the API needs the snapshots:write scope. Scope table: API keys.

Replicating from a snapshot

You can open 1 to 10 machines from one snapshot at the same time, which is handy for experiments or parallel work. The machines are named <prefix>-1, <prefix>-2 … (the snapshot name when no prefix is given), and all of them use a temporary /workspace like any machine opened from a snapshot.

  • Panel: On the Snapshots page, Replicate on a ready snapshot's row lets you pick the number, the name prefix and the size. The estimated hourly cost is shown and you confirm it.
  • CLI: hb machines create --from-snapshot web-ilk --count 3 --prefix deney (CLI 0.5.0 and later, not published yet). --partial opens as many as fit.
  • API: POST /v1/snapshots/{id}/fanout with the body { "count": 3, "namePrefix": "deney", "size": "small", "allOrNothing": true }; it needs the machines:create scope. The answer has created (the machines that opened), failed (those that did not: index, name, code), requested and the hourly cost estimate estimate.
  • Checked first: Your machine limit, your balance and your spend budget are checked against the requested number before anything opens. With allOrNothing on (the default), if not all fit, none opens and the answer is 402 (PLAN_LIMIT_MACHINES, CREDIT_INSUFFICIENT or BUDGET_EXCEEDED; details.requested and details.remaining give the numbers). With it off, as many as fit open and the rest are listed in failed with their reason.
  • Cost: Every machine that opens is metered at the normal per-minute price (Credits and pricing); the estimate is count × the hourly price of the size.

Charges

The persistent disk and snapshots are charged at 4.00 TL per GB-month, on the allocated size. They are charged while the machine is paused or stopped too. Details: Credits and pricing.

How persistent each machine is

Machine/workspace
The machine the persistent disk is attached toPersistent
A second machine opened while the disk is attached elsewhereTemporary
A machine opened from a snapshotTemporary

CLI

You manage snapshots from the panel or with the API. The CLI has the hb snapshots command (list, take, delete); you can also open a machine from a snapshot with hb machines create --from-snapshot; with --count it opens several machines. For details, see the CLI page.

Persistent disk and snapshots · hadronbox docs