milvus backup crossStorage
side effect
#39230
-
When performing backup/restore operations in Milvus, if the copy API between object storage services is not supported, i need to set |
Beta Was this translation helpful? Give feedback.
Answered by
yhmo
Jan 14, 2025
Replies: 1 comment 2 replies
-
@wayblink thanks for your work! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@huanghaoyuanhhy is the new maintainer of the milvus-backup.
The
crossStorage
is used here, assigned to the method NewCopier():https://github.com/zilliztech/milvus-backup/blob/731d697b6bc64abc9e23acde12f1f8caed7a2fe3/core/backup_context.go#L246
The NewCopier() method returns a Copier object for copying data files from source to target storage. If the
crossStorage
is true, the Copier.copyByServer() is called:https://github.com/zilliztech/milvus-backup/blob/731d697b6bc64abc9e23acde12f1f8caed7a2fe3/core/storage/copier.go#L254
The Copier.copyByServer() gets a Reader from the source storage and calls UploadObject() of the target storage:
https://github.com/zilliztech/milvus-backup/blob/731d6…