How to Enable Automatic Backups on a Vultr Cloud GPU Instance
-
by Blog Admin
- 14
How to Enable Automatic Backups on a Vultr Cloud GPU Instance
A service that automatically creates and stores backups of your Vultr GPU instance on a regular schedule.
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 Cloud GPU instance using the Vultr Customer Portal, API, CLI, or Terraform.
Vultr Customer Portal
- 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.
- Click Update to create automatic backups based on set the schedule.
Vultr API
- Send a
GET
request to the List Instances endpoint and note the target instance’s ID in your output.console$ 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.console$ 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 your instance.console$ 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.
Vultr CLI
- List all instances in your Vultr account and note the target instance’s ID.
console
$ vultr-cli instance list
- Create a new automatic backups schedule using the target instance’s ID.
console
$ 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.
Terraform
- Open your Terraform configuration for the existing Cloud GPU instance.
- Update the
backups
value in the instance resource to"enabled"
.terraformresource "vultr_instance" "gpu" { # ...existing fields (region, plan, label, etc.) backups = "enabled" # Enable automatic backups }
- Apply the configuration and observe the following output:
Apply complete! Resources: 0 added, 1 changed, 0 destroyed.
How to Enable Automatic Backups on a Vultr Cloud GPU Instance A service that automatically creates and stores backups of your Vultr GPU instance on a regular schedule. Automatic Backups enable the creation of a full backup of your instance data and file system using a specific schedule for recovery…
How to Enable Automatic Backups on a Vultr Cloud GPU Instance A service that automatically creates and stores backups of your Vultr GPU instance on a regular schedule. Automatic Backups enable the creation of a full backup of your instance data and file system using a specific schedule for recovery…