Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tools-v2]: curve bs need a command for files in recycle bin to restore #2907

Open
zhengweizhu opened this issue Nov 17, 2023 · 2 comments
Open
Assignees
Labels
enhancement improve feature

Comments

@zhengweizhu
Copy link

Is your feature request related to a problem? (你需要的功能是否与某个问题有关?)
By means of tools-v2 cli we can delete a file by command "curve bs delete file --path /test1 --force false", and eventually the file will be just renamed a file in dir /RecycleBin. By the way, the flag --force is not allowed to be true due to the limitation of curvebs mds. Also the curve cli has a subcommand clean-recycle to do clean job in /RecycleBin. The problem is that the curve cli seems not to support to restore the files in /RecycleBin, which can't explain the meaning of existing of recycle bin.

Describe the solution you'd like (描述你期望的解决方法)
Add a restore subcommand like this "curve bs restore --path /RecycleBin/test1-4".

Describe alternatives you've considered (描述你想到的折衷方案)

Additional context/screenshots (更多上下文/截图)

@zhengweizhu zhengweizhu added the enhancement improve feature label Nov 17, 2023
@zhengweizhu
Copy link
Author

BTW I am glad to fix this issue if necessary.

@montaguelhz
Copy link
Contributor

welcome to fix it

@zhengweizhu zhengweizhu changed the title [toos-v2]: curve bs need a command for files in recycle bin to restore [tools-v2]: curve bs need a command for files in recycle bin to restore Nov 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement improve feature
Projects
None yet
Development

No branches or pull requests

3 participants