Automatic Backups enable the creation of a full backup of your instance data and file system using a specific schedule for recovery in case of unexpected failures. Automatic backups use specific backup schedule intervals and retention policies to ensure your instance is backed up in your Vultr account.
Follow this guide to enable automatic backups on a Vultr Optimized Cloud Compute instance using the Vultr Customer Portal, API, or CLI.
Navigate to Products and click Compute.
Click your target instance to open its management page.
Navigate to the Backups tab.
Click Enable Backups to turn on automatic backups.
Click Enable Backups in the confirmation prompt to enable automatic backups.
Click the Schedule Backups drop down to select a back up schedule and click Update to create automatic backups based on set the schedule.
Send a GET
request to the List Instances endpoint and note the target instance's ID in your output.
$ 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 update the instance and enable 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"
}'
Send a POST
request to the Set Instance Backup Schedule endpoint to create a new automatic backups schedule to enable on the instance.
$ curl "https://api.vultr.com/v2/instances/{instance-id}/backup-schedule" \
-X POST \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
--data '{
"type": "daily",
"hour": 10,
"dow": 1,
"dom": 1
}'
Visit the Set Instance Backup Schedule API page to view additional schedule attributes to create automatic backups.
List all instances in your Vultr account and note the target instance's ID.
$ vultr-cli instance list
Create a new automatic backups schedule using the target instance's ID.
$ vultr-cli instance backup create e56d93ea-41c4-4dbe-93e2-537c552cf2fb --type daily --hour 10 --dow 1 --dom 1
Run vultr-cli instance backup create --help
to view more additional schedule options to create automatic backups.