milvus_backup日常维护
######################################################恢复########################################################################
1.恢复某个集合
数据库msvdb_ai没有创建的情况下,会自动创建
/opt/milvus_backup0427/milvus-backup restore -n mvsdb_ai_bak_20241210 -c mvsdb_ai.question01 --restore_index=true --config=/opt/milvus_backup/conf/backup.yaml
2.恢复多个集合
/opt/milvus_backup/milvus-backup restore -n mvsdb_ai_bak_20241210 -c mvsdb_ai.t1,mvsdb_ai.t2 --restore_index=true --config=/opt/milvus_backup/conf/backup.yaml
3.恢复整个库
/opt/milvus_backup/milvus-backup restore -n mvsdb_ai_bak_20241210 -d mvsdb_ai --restore_index=true --config=/opt/milvus_backup/conf/backup.yaml
4.恢复时候集合重新命名,原表后面加上 _rec
/opt/milvus_backup/milvus-backup restore -n mvsdb_ai_bak_20241210 -d mvsdb_ai --restore_index=true -s _rec --config=/opt/milvus_backup/conf/backup.yaml
5.已经存在的集合和索引的恢复
/opt/milvus_backup/milvus-backup restore -n mvsdb_ai_bak_20241210 -d mvsdb_ai --restore_index=true --drop_exist_collection --drop_exist_index --config=/opt/milvus_backup/conf/backup.yaml
6.覆盖已存在的集合恢复
/opt/milvus_backup/milvus-backup restore -n mvsdb_ai_bak_20241211 -c mvsdb_ai.question_alignment --restore_index=true --skip_create_collection=true --drop_exist_collection=true --drop_exist_index=true --config=/opt/milvus_backup/conf/backup.yaml