For AI agents: The documentation index is at https://docs.digitalocean.com/llms.txt. Markdown versions of pages use the same URL with index.html.md in place of the HTML page (for example, append index.html.md to the directory path instead of opening the HTML document).
How to Create Volumes from Snapshots
Last verified 24 Nov 2026
Snapshots are on-demand disk images of DigitalOcean Droplets and volumes saved to your account. Use them to create new Droplets and volumes with the same contents.
You can use any volume snapshot to create new volumes in the same region.
Create a Volume from a Snapshot using the Control Panel
To create a volume from a snapshot, go to the Snapshots tab of the Backups & Snapshots page, then click Volumes.
From there, open the … (More) menu of the snapshot you want to use and click Create Volume to create a new volume based on it. In the window that opens, you can choose options for the new volume.
Choose a preset volume size or enter a custom volume size, either of which must be at least as big as the original volume used to create the snapshot. Next, select a Droplet to attach the volume to. The Droplet must be in a region which supports block storage. Finally, enter a name for the volume, and click Create Volume to create a new volume from the snapshot.
Create a Volume from a Snapshot using Automation
To create a new volume from a snapshot, use the following volume creation doctl command or API endpoint, and set the snapshot field the snapshot’s image ID.
How to Create a Block Storage Volume Using the DigitalOcean CLI
curl -X POST \
-H "Content-Type: application/json"\
-H "Authorization: Bearer $DIGITALOCEAN_TOKEN"\
-d '{"size_gigabytes":10, "name": "example", "description": "Block store for examples", "region": "nyc1", "filesystem_type": "ext4", "filesystem_label": "example"}'\
"https://api.digitalocean.com/v2/volumes"
Go
Using Godo, the official DigitalOcean API client for Go:
import("context""os""github.com/digitalocean/godo")funcmain(){token:=os.Getenv("DIGITALOCEAN_TOKEN")client:=godo.NewFromToken(token)ctx:=context.TODO()createRequest:=&VolumeCreateRequest{Region:"nyc1",Name:"example",Description:"Block store for examples",SizeGigaBytes:10,}volume,_,err:=client.Storage.CreateVolume(ctx,createRequest)}
Ruby
Using DropletKit, the official DigitalOcean API client for Ruby:
require'droplet_kit'token=ENV['DIGITALOCEAN_TOKEN']client=DropletKit::Client.new(access_token:token)volume=DropletKit::Volume.new(size_gigabytes:10,name:'Example',description:'Block store for examples',region:'nyc1')client.volumes.create(volume)
Python
Using PyDo, the official DigitalOcean API client for Python:
importosfrompydoimportClientclient=Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))req={"size_gigabytes":10,"name":"ext4-example","description":"Block store for examples","region":"nyc1","filesystem_type":"ext4","filesystem_label":"ext4_volume_01"}resp=client.volumes.create(body=req)
We can't find any results for your search.
Try using different keywords or simplifying your search terms.