'How can I change bucket name in MinIO?
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?
Solution 1:[1]
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.
Solution 2:[2]
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!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | donatello |
Solution 2 | Smallw00d |