Schedule Automatic Backups
Zilliz Cloud allows you to enable automatic backups for your clusters, helping ensure data recovery in case of unexpected issues. Automatic backups apply to the entire cluster—backing up individual collections automatically is not supported.
Backup creation incurs additional charges, with pricing based on the cloud region where the backup is stored. All backup files are stored in the same cloud region as the source cluster. For example, a cluster in AWS us-west-2
will have its backups stored in AWS us-west-2
.
This guide walks you through how to schedule automatic backups on Zilliz Cloud. To create on-demand backups, see Create Backup.
The backup and restore feature is exclusively available to Dedicated clusters.
Limits
-
Access control: You must be a project admin, organization owner, or have a custom role with backup privileges.
-
Excluded from backup:
-
Collection TTL settings
-
Password for the default user
db_admin
(a new password is generated during restore)
-
-
Cluster shard settings: Backed up but may be adjusted during restore if the cluster CU size is reduced, due to shard-per-CU limits. See Zilliz Cloud Limits for details.
-
Backup job restrictions:
-
Manual backups cannot start while an automatic backup is in progress.
-
Automatic backups will still run if a manual backup is already in progress.
-
Enable automatic backup
Automatic backup settings are cluster-specific and disabled by default. Because backups incur storage costs, you can control when and how Zilliz Cloud creates them. Once automatic backup is enabled, Zilliz Cloud generates an initial backup immediately, followed by recurring backups based on your specified schedule.
Via web console
When you enable automatic backup on the web console, Zilliz Cloud is configured to the followings by default:
-
Frequency: Create a backup daily
-
Backup Time: Between 8 a.m. and 10 a.m. (UTC +08:00)
-
Retention Period: Retain each backup for 7 days
You can adjust these settings to fit your needs.
The following demo shows how to enable and configure automatic backups:
Via RESTful API
The following example enables automatic backup for a cluster. For details about the RESTful API, see Set Backup Policy.
curl --request POST \
--url "${BASE_URL}/v2/clusters/${CLUSTER_ID}/backups/policy" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Content-Type: application/json" \
-d '{
"frequency": "1,2,3,5",
"startTime": "02:00-04:00",
"retentionDays": 7,
"enabled": true
}'
The following is an example output. A backup job is immediately generated once automatic backup is enabled. You can check the progress in the project job center.
{
"code": 0,
"data": {
"clusterId": "inxx-xxxxxxxxxxxxxxx",
"status": "ENABLED"
}
}
Check backup schedule
When automatic backup is enabled, you can check its schedule.
Via web console
The following demo shows how to check automatic backup schedule on the Zilliz Cloud web console.
Via RESTful API
The following example checks the automatic backup policy of a cluster. For details about the RESTful API, see Get Backup Policy.
curl --request GET \
--url "${BASE_URL}/v2/clusters/${CLUSTER_ID}/backups/policy" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Content-Type: application/json"
The following is an example output.
{
"code": 0,
"data": {
"clusterId": "inxx-xxxxxxxxxxxxxxx",
"status": "ENABLED",
"startTime": "02:00-04:00",
"frequency": "1,2,3,5",
"retentionDays": 7
}
}
Disable automatic backup
You can also disable automatic backup for a cluster.
Via web console
The following demo shows how to check automatic backup schedule on the Zilliz Cloud web console.
Via RESTful API
The following example disables automatic backup for a cluster. For details about the RESTful API, see Set Backup Policy.
curl --request POST \
--url "${BASE_URL}/v2/clusters/${CLUSTER_ID}/backups/policy" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Content-Type: application/json" \
-d '{
"enabled": false
}'
The following is an example output.
{
"code": 0,
"data": {
"clusterId": "inxx-xxxxxxxxxxxxxxx",
"status": "DISABLED"
}
}
FAQs
How long does a backup job take? Backup duration depends on the size of your data. As a reference, backing up 700 MB typically takes about 1 second. If your cluster contains more than 1,000 collections, the process may take slightly longer.
Can I perform DDL (Data Definition Language) operations during a backup? It is recommended to avoid major DDL (Data Definition Language) operations—such as creating or dropping collections—while a backup is in progress, as they may interfere with the process or lead to inconsistent results.
What is the retention period of automatic backup files?
The default retention period for automatic backups is 7 days, and you can adjust it up to a maximum of 30 days.
Will backup files be deleted if the original cluster is dropped?
This depends on the creation method of the backup file. All automatic backups are deleted along with the original cluster. But manual cluster backups are retained permanently and will not be deleted when the cluster is deleted. You must delete them manually if no longer needed.