I have a Minio cluster that we you as on-promise object storage, We want to change bucket name in it, How do I do this?
Asked
Active
Viewed 3,060 times
2 Answers
4
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.

Smallw00d
- 151
- 1
- 4
-
1Thanks, it worked for my single instance minio setup – executeinstaller Nov 28 '22 at 15:05
2
It is not possible to rename buckets: you have to create a new bucket with the desired name, copy over your data mc cp -r minio/oldbucket minio/newbucket
and delete the old bucket.

donatello
- 5,727
- 6
- 32
- 56