Snapshots for Vultr instances are point-in-time images of your entire Cloud Compute instances hard drives. You can use snapshots to create backups or to replicate Cloud Compute instances. Unlike Automatic Backups for Vultr instances, you must take snapshots manually.
Follow this guide to manage Snapshots for Vultr instances using the Vultr Customer Portal, API, and CLI.
Navigate to Products and select Compute.
Select your target Cloud Compute instance from the list.
Navigate to Snapshots, enter a label and click Take Snapshot.
Send a GET
request to the List Instances endpoint to get the Cloud Compute instance ID.
$ curl "https://api.vultr.com/v2/instances" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a POST
request to the Create Snapshot endpoint specifying a cloud compute instance ID to create a snapshot.
$ curl "https://api.vultr.com/v2/snapshots" \
-X POST \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
--data '{
"instance_id" : "instance_id",
"description" : "Weekly-Snapshot-14-08-2024"
}'
Visit the Create Snapshot endpoint to view additional attributes to add to your request.
Send a GET
request to the List Snapshots endpoint to view all snapshots.
$ curl "https://api.vultr.com/v2/snapshots" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
List all cloud compute instances and note the instance ID.
$ vultr-cli instance list
Create a snapshot by specifying the Cloud Compute instance ID and the snapshot description.
$ vultr-cli snapshot create --id instance_id --description "Weekly Snapshot 14-08-2024"
List all snapshots.
$ vultr-cli snapshot list
Run vultr-cli snapshot create --help
to view all options.