Snapshot and Restore a Devbox
A 4-step recipe with Runloop. We can help you get access.
Recipe · 4 steps
Snapshot and Restore a Devbox
with Runloop · Environment Management
Snapshot a devbox disk and restore it into a new devbox.
- Begin an asynchronous disk snapshot of the source devbox.
- Poll the snapshot status until it reports complete, looping back while it is in_progress and ending the flow if it errors.
- Create a new devbox seeded from the completed disk snapshot.
- Wait for the restored devbox to reach the running state.
What you'll need to have ready
- apiToken: Runloop API bearer token.
- devboxId: The id of the source devbox to snapshot.
- snapshotName: Optional name for the disk snapshot.
- commitMessage: Optional commit message describing the snapshot.
- restoredName: Optional name for the devbox restored from the snapshot.
For your developer
Arazzo workflow runloop-ai:snapshot-and-restore-devbox, 4 operations: createDiskSnapshotAsync → queryDiskSnapshotAsync → createDevbox → waitForDevboxStatus. Specs on APIs.io.