Automatic Backups for Vultr instances are scheduled point-in-time data recovery solutions that allow you to backup your Cloud Compute instances' data with minimal intervention. These backups are suitable for mission-critical applications because they aid in data protection, disaster recovery, compliance, and auditing. Vultr supports daily, every other day, weekly, and monthly backup schedules.
Follow this guide to manage Automatic Backups for Vultr instances using the Vultr Customer Portal, API, or CLI.
Navigate to Products and select Compute.
Select your target Cloud Compute instance from the list.
Navigate to Backups and click Enable Backups.
Click Enable Backups to confirm.
Navigate to Backup Schedule. Then, select daily, weekly, or every other day backup schedule. Set the day of the week and time and click Update.
From this point forward, any new backup appears under the backup history. Click Convert to convert the backup to a manual snapshot or Restore to restore the backup to the cloud compute instance.
Navigate to Products, select Orchestration, then click Backups. Click the camera icon to convert the backup to a 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 PATCH
request to the Update Instance endpoint to turn on automatic backups.
$ curl "https://api.vultr.com/v2/instances/instance_id" \
-X PATCH \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
--data '{
"backups" : "enabled",
"backups_schedule" : {
"type" : "daily",
"hour" : "0"
}
}'
Send a PATCH
request to the Update Instance endpoint to turn off automatic backups.
$ curl "https://api.vultr.com/v2/instances/instance_id" \
-X PATCH \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
--data '{
"backups" : "disabled"
}'
Visit the Update Instance endpoint to view additional attributes to add to your request.
Send a GET
request to the List Backups endpoint and note the backup ID.
$ curl "https://api.vultr.com/v2/backups" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a GET
request to the Get Backup endpoint and specify the backup ID to view the backup details.
$ curl "https://api.vultr.com/v2/backups/backup_id" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
List all cloud compute instances and note the instance ID.
$ vultr-cli instance list
Update the backup schedule by specifying the instance_id
.
$ vultr-cli instance backup create instance_id --type weekly --dow 0 --hour 0
List all backups by specifying a cloud compute instance ID.
$ vultr-cli instance backup get instace_id
List all Cloud Compute instance backups.
$ vultr-cli backups list
Get details of a specific backup by specifying the backup ID.
$ vultr-cli backups get backup_id
Run vultr-cli instance backup create --help
to view all options.