From 40692ecf4e8b30b91e926dacf1b8a27ebe2eb8af Mon Sep 17 00:00:00 2001 From: Kristin Martin Date: Wed, 15 Apr 2026 17:48:09 +0000 Subject: [PATCH] Add tip for creating a Machine with a volume from a snapshot Documents the one-shot `fly scale count --with-new-volumes --from-snapshot` command so users restoring from a snapshot don't have to create the volume and clone a Machine as two separate steps. Closes #242 --- volumes/snapshots.html.markerb | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/volumes/snapshots.html.markerb b/volumes/snapshots.html.markerb index f33a6bc1b0..f606c452b0 100644 --- a/volumes/snapshots.html.markerb +++ b/volumes/snapshots.html.markerb @@ -124,6 +124,18 @@ Restore the data from a volume by creating a new volume from a snapshot: For options, refer to the [`fly volumes create` docs](/docs/flyctl/volumes-create/) or run `fly volumes create --help`. +## Create a Machine with a volume from a snapshot + +Create the volume and the Machine in one command: + +```cmd +fly scale count --with-new-volumes --from-snapshot 1 +``` + +`--with-new-volumes` creates a new volume instead of reusing an existing one. `--from-snapshot` populates that volume from the snapshot. The trailing `1` is the Machine count. + +For options, refer to the [`fly scale count` docs](/docs/flyctl/scale-count/) or run `fly scale count --help`. + ## List snapshots and their stored sizes Snapshots for each volume are stored incrementally, so only data that has changed since the previously stored snapshot consumes additional storage. The total stored size of the snapshots is used for [Volume Snapshot billing](/docs/about/billing/#volume-snapshot-billing).