pythonubuntucollectionsrestoremilvus

Return collection in Milvus. How to undo `recreate_collection`?


I have a standalone Milvus running in docker. It is recording vectors into volumes folder.

I accidentally ran recreate_collection command and now it show there is no data in collection. Though, the volumes is still 8.2gb. How can I return this data into collection?

Volumes folder has the next structure:

volumes
  milvus
    data
    |  delta_log
    |  index_files
    |  insert_log
    |  mmap
    |    mmap_chink_manager
    |  stats_log
    etcd
    rdb_data
    rdb_data_meta_kv

Thank you in advance!


Solution

  • What do you mean by recreate_collection command as I can't find such command in Milvus SDKs? Do you mean by dropping & create a new collection with the same name & schema? If so, I think there is no direct method to recover the data. Since your volume seems still keep the original data, you may try to manually batch_import referring to restore scripts in https://github.com/zilliztech/milvus-backup.