--- name: backup description: Use when the user wants to create, list, describe, delete, export, or restore backups, or manage backup policies on Zilliz Cloud. --- ## Prerequisites 1. CLI installed and logged in (see setup skill). 2. No cluster context required -- backup operations use `--cluster-id` directly. ## Commands Reference ### Create a Backup ```bash zilliz backup create --cluster-id # Optional: # --database # --collection # --backup-type # Or use raw JSON: --body '{...}' ``` ### List Backups ```bash zilliz backup list # Optional: # --project-id # --cluster-id # --creation-method # --backup-type # Pagination: --page-size --page # Fetch all pages: --all ``` ### Describe a Backup ```bash zilliz backup describe --cluster-id --backup-id ``` ### Delete a Backup ```bash zilliz backup delete --cluster-id --backup-id ``` ### Export a Backup ```bash zilliz backup export \ --cluster-id \ --backup-id \ --integration-id # Optional: --directory ``` ### Restore to a New Cluster ```bash zilliz backup restore-cluster \ --cluster-id \ --backup-id \ --project-id \ --name \ --cu-size \ --collection-status # Optional: --restore-version-policy ``` ### Restore Specific Collections ```bash zilliz backup restore-collection \ --cluster-id \ --backup-id \ --dest-cluster-id # Or use raw JSON: --body '{"collections": [{"source": "col1", "target": "col1_restored"}]}' ``` ### Describe Backup Policy ```bash zilliz backup describe-policy --cluster-id ``` ### Update Backup Policy ```bash zilliz backup update-policy --cluster-id --auto-backup # Optional: # --frequency # --start-time # --retention-days # Or use raw JSON: --body '{...}' ``` ## Backup Policy Format Frequency: `daily | weekdays | weekends | 1-7` (1=Mon, 7=Sun), e.g. `1,3,5` Start time: `HH:MM` or `HH:MM-HH:MM` (time window), e.g. `02:00` or `03:00-05:00` ## Guidance - The backup type is automatically derived: if `--collection` is provided, it's a COLLECTION backup; otherwise it's a CLUSTER backup. - Backup creation, export, and restore operations are **asynchronous**. After starting, use `backup describe` to check progress. - The `--integration-id` for export refers to a cloud storage integration configured in the Zilliz Cloud console (see import skill for setup guidance). - Before deleting a backup, confirm with the user -- this is irreversible. - When restoring, explain the difference between cluster restore (new cluster) and collection restore (into existing cluster). - Suggest setting up a backup policy for production clusters.