zilliztech / milvus-backup

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

[Bug]: milvus-backup can't automatically generate backup name #188

Closed WuYiFan0108 closed 9 months ago

WuYiFan0108 commented 10 months ago

Current Behavior

The output of ./milvus-backup create -h shows that milvus-backup can automatically generate a name if backup name is unset. But when I try ./milvus-backup create or ./milvus-backup create -n, neither works. The former reports that collection BACKUP_NAME should not be empty, the latter reports that flag needs an argument: 'n' in -n.

Am I using it the wrong way or is it an unimplemented feature or is it a bug?

Expected Behavior

No response

Steps To Reproduce

No response

Environment

No response

Anything else?

If it's an unimplemented feature or a bug, I'm happy to help.

wayblink commented 10 months ago

@WuYiFan0108 Hi, thanks. Yes, it is an unimplemented feature. Welcome to contribute! You can define a default name format, I think it should contain explicit date.

WuYiFan0108 commented 10 months ago

May be we can just simply use "backup_<time.Now().UnixNano()>" as the default name?