Skip to content
Checkpoints and backups

Checkpoints and backups

A checkpoint saves a machine’s disk under a name. Use it to:

  • back up a machine, before a risky change or regularly, and roll it back to that state when something goes wrong (space machines restore);
  • start any number of new machines from the same prepared disk (space machines create --from).

Checkpoint names are unique within an organization, so base means the same checkpoint to everyone in it. A checkpoint holds the disk only, not memory or running processes.

Take a checkpoint

space checkpoints create dev base --wait

This checkpoints machine dev as base. With --wait the command returns when the checkpoint is committed (ready to use). space cp is short for space checkpoints.

space checkpoints list
NAME  TAGS  MACHINE  STATE      CREATED
base  -     dev      committed  2026-11-06T10:12:03Z

Tag checkpoints

Tags label checkpoints: good on the ones you trust, latest on the newest. A checkpoint has any number of tags, and a tag may be on several checkpoints.

space checkpoints tag base good
space checkpoints create dev nightly-1 --tag latest --unique --wait
space checkpoints untag base good

--unique moves a tag: the machine’s other checkpoints lose it, so it names one checkpoint of that machine at a time. Run the second line every night with a new name, and latest always names the newest.

A tag that only one checkpoint has stands in for its name: space machines restore dev latest restores the newest checkpoint of dev, and --from dev:latest creates a machine from it. A tag on several checkpoints is refused where one is meant, naming them. Tags look like names (a-z 0-9 . _ -) and never equal one: a tag can’t be the name of a checkpoint in the organization, and a new checkpoint can’t be named after a tag.

The portal’s Checkpoints page shows the tags and changes them (Edit tags). Inside a machine, space-env checkpoints does the same for the machine’s own checkpoints (space-env reference).

The Checkpoints page: checkpoints nightly-1 and base of machine dev-box, committed, tagged latest and good, each with Edit tags and New machine from it The Checkpoints page: checkpoints nightly-1 and base of machine dev-box, committed, tagged latest and good, each with Edit tags and New machine from it
The Tags of base dialog: the tags good stable in one field, the box Only this checkpoint of dev-box has them, Cancel and Save tags The Tags of base dialog: the tags good stable in one field, the box Only this checkpoint of dev-box has them, Cancel and Save tags

Roll a machine back

space machines restore dev base --wait

The machine’s disk goes back to the state in the checkpoint; anything written since is lost. A checkpoint can only restore the machine it was taken from. The machine keeps its id and SSH host key. Instead of the name, a tag only one of the machine’s checkpoints has works too:

space machines restore dev latest --wait

Create machines from a checkpoint

space machines create worker-1 --from base --wait
space machines create worker-2 --from dev:latest --wait

--from takes a name, a tag only one checkpoint has, or <machine>:<tag>.

Each new machine starts with a copy of the checkpoint’s disk. Its disk must be at least as large as the source machine’s (--disk). On its first boot the new machine gets its own machine id and SSH host key, so clones never share an identity.

Delete a checkpoint

space checkpoints delete base

This asks for confirmation; --yes skips it. Delete on the Checkpoints tab of the machine’s Manage dialog in the portal asks for a code from your authenticator app or a passkey.

Machines already created from it keep working. You can delete the source machine too; its clones keep working.

Note

A chain of machines created from checkpoints of machines that were themselves created from checkpoints is limited to 8 levels for now. Creating a machine beyond that is refused.

On the hosts’ own disks

Where your operator moved disks onto the hosts (where its disk is kept), a checkpoint is taken on the host the machine runs on and saved to object storage a moment later, sharing what it has in common with the machine’s other saves. A restore on that host, or a new machine made there, is instant; anywhere else (the host is full, failed, or the machine moved since) the machine or the new one starts from the saved checkpoint, a few seconds more. A checkpoint taken just now that is not saved yet works only on its own host: if that host can’t take the restore or the new machine, you are asked to try again in a minute. If that host fails before the checkpoint is saved, the checkpoint is lost with it and shows as failed; take it again once the machine runs. Saved checkpoints are not affected.

Backups

Where your operator moved disks onto the hosts, the region also keeps a daily backup of every machine’s disk for 7 days, with a copy in a second region (where its disk is kept). Your operator restores those, to a day; a checkpoint is yours to take, name and roll back to whenever you like.

Limits

Each organization has a maximum number of checkpoints (max_checkpoints, see space orgs show); a checkpoint deleted but kept for the machines made from it still counts. Disk space kept alive for clones of a deleted machine or checkpoint counts towards the organization’s disk quota until the last clone is gone.

A checkpoint stores what changed on the disk since the checkpoint before it, not the whole disk: the checkpoint list shows it (Stores), and Usage & credits (under Usage & limits) adds them up. A plan’s checkpoint storage ceiling, if it has one, refuses a new checkpoint once checkpoints store that much (see Storage).

Warning

TODO: whether a machine’s checkpoints remain listed (and usable with --from) after the machine itself is deleted; DELETE /machines/{machine} has no option for it in the API contract.

Last updated on