We have a Minio cluster that we use as an on-premises object storage. We want to rename a bucket in it. How can I do this?
4 Answers
IF:
- you are running a single instance minio
- you have access to the minio volume directly
Then, yes, it is simply possible by renaming the directory directly.
mv old-bucket.mydomain.example new-bucket.mydomain.example
Explanation
Let's assume minio data is stored in /data/, and we have a bucket called old-bucket.mydomain.example. Then the bucket is stored under /data/old-bucket.mydomain.example directory. Therefore, we can simply rename the directory and it would work!
Update
Please note that, there might be some issues in case of having encryption enabled on the bucket.
1 Comment
executeinstaller
Thanks, it worked for my single instance minio setup
Renaming the directory does not alter the metadata. Use the CLI.
1 Comment
ronnyworm
For me, it took a few minutes and then the metadata was updated automatically when renaming with mv in a single instance minio (version RELEASE.2025-04-08T15-41-24Z).