Restoring a snapshot involves recovering the exact state of a system at the time the snapshot was created. Snapshots capture the complete configuration, including the operating system, applications, and data, making it easy to revert to a specific point in time. This process is essential for system recovery, testing, or duplicating environments, ensuring consistency and minimizing downtime.
Follow this guide to restore snapshots using the Vultr Customer Portal, API, and CLI.
Navigate to Products and click Compute.
Click your target Vultr Cloud Compute instance to open its management page.
Navigate to the Snapshots tab.
Choose any snapshot you want to restore.
Click "Restore Snapshot" to start the restoration procedure on that target Vultr Cloud Compute instance.
Optional: To provision a new Vultr Cloud Compute instance with snapshot, select Snapshot in the Choose Image section. How to Provision Vultr Cloud Compute Instance.
Send a GET
request to the List Snapshots endpoint to list all snapshots.
$ curl "https://api.vultr.com/v2/snapshots" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a GET
request to the List Instances endpoint to list all deployed Vultr Cloud Compute instances. Note the target instance's ID.
$ curl "https://api.vultr.com/v2/instances" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a POST
request to the Restore Instances endpoint to start the restore procedure of the target Vultr Cloud Compute instance.
$ curl "https://api.vultr.com/v2/instances/<instance-id>/restore" \
-X POST \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
--data '{
"snapshot_id": "<snapshot-id>"
}'
Optional: Send a POST
request to the Create Instances endpoint to provision a new Vultr Cloud Compute instance using snapshot.
$ curl "https://api.vultr.com/v2/instances" \
-X POST \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
--data '{
"region" : "<region>",
"plan" : "<plan>",
"snapshot_id" : "<snapshot-id>",
"label" : "<label>",
"hostname": "<hostname>"
}'
List all snapshots and note the target snapshot's ID.
$ vultr-cli snapshot list
List all Vultr Cloud Compute instances and note target instance's ID.
$ vultr-cli instance list
Restore a snapshot on the target Vultr Cloud Compute instance.
$ vultr-cli instance restore <instance-id> --snapshot <snapshot-id>
Optional: Provision a new Vultr Cloud Compute instance using snapshot.
$ vultr-cli instance create --region="<region>" --plan="<plan>" --snapshot="<snapshot-id>" --label="<label>"