zilliztech / milvus-backup

Backup and restore tool for Milvus
Apache License 2.0
111 stars 38 forks source link

[Feature]: Optimizing Cross-Cluster Backup and Recovery #375

Open zhuwenxing opened 4 days ago

zhuwenxing commented 4 days ago

Is your feature request related to a problem? Please describe.

The current cross-cluster backup and recovery operation is somewhat complicated, requiring a lot of manual intervention from users.

Describe the solution you'd like.

Assuming there are two clusters, Alice and Bob.

Set alias names for each cluster:

milvus-backup alias set alice -c alice_backup.yaml
milvus-backup alias set bob -c bob_backup.yaml

List the configuration information of the clusters:

milvus-backup alias list

This will show the configuration information for both clusters.

Check the configuration information of the Alice cluster:

milvus-backup check alice

Check the configuration information of the Bob cluster:

milvus-backup check bob

Create a backup for the Alice cluster:

milvus-backup create -n alice/backup_1

This creates a backup for the Alice cluster with the name backup_1.

List all backups for the Alice cluster:

milvus-backup list alice

List all backups for all aliases:

milvus-backup list

Copy a backup from the Alice cluster to the Bob cluster:

milvus-backup copy alice/backup_1 bob/backup_1

This copies the backup_1 from the Alice cluster to the Bob cluster and creates a backup named backup_1. If backup_1 already exists in the Bob cluster, an error will be reported.

Restore the Bob cluster using a backup:

milvus-backup list bob

You should see the backup copied from the Alice cluster.

Restore the Bob cluster from the backup:

milvus-backup restore bob/backup_1

Describe an alternate solution.

No response

Anything else? (Additional Context)

No response

wayblink commented 4 days ago

good suggestion and design!