======================================================================================= Tutorial: How to copy your EOS bucket object to another E2E Account ======================================================================================= ************ Introduction ************ By default, Object storage bucket could not be simply transferred or moved to another bucket. This is true even if the destination bucket is owned by another account. In this tutorial, We are going to show the steps on how to migrate your object storage bucket from one account to another account in the myaccount portal using command line interface **mc**. *********************************************** Step 1: Create a New bucket on your new account *********************************************** Go to object storage and create a new bucket in which you want to copy the files/folders from your previous bucket. .. image:: images/mig1.png Enter the name of your bucket and click on create, We now have a bucket named called "new-bucket-e2e" .. image:: images/mig2.png ********************************************** Step 2: Attach Admin Permission for CLI access ********************************************** We need to Attach admin permission for cli access for both old bucket from where data needs to be copied and also on the bucket which is newly created Select the bucket, Go to Permission and click on Attach access key .. image:: images/mig3.png If you have an existing key, You can use the same or you can create a new key to attach it to your bucket. .. Note :: If you are creating a new key, make sure you note down the access key and private key as it will be displayed to you only once. Here, In this case, we have attached a key named "new_bucket_key" and have given admin permission for the same. .. image:: images/mig4.png Similarly, We have followed the same steps and have attached admin permission for the old bucket ******************************************************** Step 3: Configure minio client (mc) on your Linux server ******************************************************** To configure the mc client on your Linux server, please follow the below steps. :: wget https://dl.min.io/client/mc/release/linux-amd64/mc chmod +x mc mv mc /usr/local/bin finally, verify whether the mc command is working as expected by using the below command :: mc --help ****************************************************** Step 4: Copy the data from old bucket to new bucket ****************************************************** With the mc command installed, You can configure both keys on your server. :: mc config host add newbucketkey https://objectstore.e2enetworks.net 4ZVRC91VTIJMX6GR33JT 95CZ196OPxxxxxxxxxxxAS3ZQFG8G6SNC1S333 mc config host add old-bucket-key https://objectstore.e2enetworks.net FCNT4DRSGMB5DEQ71KEM C6FUVZ4xxxxxxxxxxxxxxxN76SC798P23 Once the keys have been configured, replace the key name and bucket in the below command and start copying your data from your old bucket to new bucket :: mc cp --recursive newbucketkey/new-bucket-e2e old-bucket-key/oldbucket-e2e