Schedule Automatic Backups
Zilliz Cloud allows you to enable automatic backups for your clusters, ensuring data recovery in case of unexpected mishaps. Regular backup prevent data loss and allow easy recovery to a specific point in time, giving you more control over your data.
Before you start
Make sure the following conditions are met:
-
You are granted the Organization Owner or Project Admin role in the target organization.
-
Your cluster runs on the Dedicated tier.
Automatic backups are available only to the Dedicated clusters. If your cluster runs on the Free, upgrade it first. If your cluster runs on the Serverless tier, migrate it to a dedicated cluster first. Creating backups may incur charges. For more information about backup cost, please refer to Understand Cost.
Create backup schedule
- Cloud Console
- Bash
To create a backup schedule, follow these steps:
-
Go to the Backups tab of your cluster and click on Automatic Backup.
-
In the Automatic Backup Settings dialog box that appears, switch on Enable Automatic Backup.
-
Set the Frequency, Backup Retention Period, and the time window for automatic backups.
For more information about backup cost, please refer to Understand Cost.
You can set a backup policy to enable automatic backups at regular intervals.
The following code creates a backup policy that will execute backups on 4 specific weekdays (Monday, Tuesday, Wednesday, and Friday). For details on parameters, refer to Set Backup Policy.
curl --request POST \
--url "${BASE_URL}/v2/clusters/${CLUSTER_ID}/backups/policy" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Accept: application/json" \
--header "Content-type: application/json" \
--data-raw '{
"frequency": "1,2,3,5",
"startTime": "02:00-04:00",
"retentionDays": 7,
"enabled": true
}'
Expected output:
{
"code": 0,
"data": {
"clusterId": "in01-3e5ad8adc38xxxx",
"status": "ENABLED"
}
}
Adjust automated backup schedule
The automated backup schedule settings are cluster-specific and disabled by default. Since there is a cost for creating backups, you can determine when and how Zilliz Cloud creates backup files on your behalf.
The default setting configures that Zilliz Cloud automatically creates a backup file for your cluster every day (Frequency) between 8 a.m. and 10 a.m. (Time Period), and keeps the backup file for 7 days (Retention Period). Change the settings as you see fit.
The maximum retention period for automatically created backups is 30 days.
Delete automatically created backup file
Dropping a cluster will remove all auto-created backup files of this cluster. Also, the auto-created backup files are removed when they reach the end of their retention period. If you need to manually delete auto-created backup files, refer to Delete Backup File.