zilliztech / milvus-backup

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

[Feature]:Restore suceessfully,but dosenot exit the data,just collection definition #241

Closed Jz-Lin closed 7 months ago

Jz-Lin commented 7 months ago

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

milvus version:2.2.14 backup & restore ,but not found data,just collection definition ,entity count is zero milvus-backup create -n milvus_bakcup_1031_2 milvus-backup restore -n milvus_bakcup_1031_2 bakcup file: 56c8dfdfe7326768d747804f1755b58 image

Describe the solution you'd like.

No response

Describe an alternate solution.

No response

Anything else? (Additional Context)

No response

IshanFernandoClouda commented 7 months ago

https://github.com/zilliztech/milvus-backup/blob/69c09058b190d0ca79d47137b42ead3beabbc50a/configs/backup.yaml#L34-L42

Make sure that the bucket names are correct

Jz-Lin commented 7 months ago

the bakcup names is the same as the milvus instance config but the bakcuk file also just have meta dir, no binlogs dir b9a1600b2563170eea9d23beee7e65e 0b4db440980644e52e8117a182f1625

047f04159e2070d8960217806f5d6c5

zhuwenxing commented 7 months ago

Collection definition is the metadata of collection, and it stores in etcd. so even though your minio config wrong, backup tools can still get them. But binlog(or segment) is stored in minio, so if the minio config is wrong, there will no data restore.

From the screenshots, most likely, your minio bucketName or rootpath is not right.

Jz-Lin commented 7 months ago

is there any command that i can test the minio bucketName or rootpath on backup config file is right ?

wayblink commented 7 months ago

is there any command that i can test the minio bucketName or rootpath on backup config file is right ?

You can use milvus-backup check command to verify your connections

zhuwenxing commented 7 months ago

is there any command that i can test the minio bucketName or rootpath on backup config file is right ?

You can get the info of minio from the mulvus.yaml in milvus pod or container if you have permission.

Jz-Lin commented 7 months ago

yes, i wrote the same as the mulvus.yaml in milvus pod before . mulvus.yaml rootPath is /root. now i change the bakcup.yaml , set rootPath : root , it backup sucessfully.