添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

Tutorial

How To Migrate from Amazon S3 to DigitalOcean Spaces with rclone

How To Migrate from Amazon S3 to DigitalOcean Spaces with rclone

Introduction

rclone utility. We will demonstrate how to install rclone , the configuration settings to use to access both storage services, and the commands that you can use to synchronize your files and verify their integrity within Spaces.

Creating API Keys and Finding Bucket Properties

Generating a DigitalOcean Spaces API Key and Finding the API Endpoint

How To Create a DigitalOcean Space and API Key tutorial.

Save the access key ID and the secret key so that we can configure rclone to access our account.

Next, we need to find the appropriate API endpoint. If you’ve already created a DigitalOcean Space you wish to transfer your objects to, you can view the Space’s endpoint within the DigitalOcean Control Panel by selecting the Space and viewing the Settings tab:

If you have not created a Space yet, rclone can automatically create the space you select as part of the copying process. The endpoint in that case would be the Spaces region you wish to use followed by .digitaloceanspaces.com . You can find the available regions for Spaces in the DigitalOcean Control Panel by viewing the selection options on the Spaces creation page. At the time of this writing only the “nyc3” region is available (with endpoint of nyc3.digitaloceanspaces.com ).

Generating an Amazon S3 API Key

Finding the Amazon S3 Bucket Region and Location Constraints

this S3 region chart from Amazon to find the appropriate region and location constraint strings. In our example, our region name is “US East (N. Virginia)”, so we would use us-east-1 as the region string and our location constraint would be blank.

Now that we have the appropriate information from our Amazon account, we can install and configure rclone using this information.

Install rclone on Your Local Computer

rclone on your local computer.

Visit the Downloads section of the project’s website to find binaries of the utility compiled for different platforms. Download the zipped binary that matches your computer’s operating system to your Downloads directory to get started.

Once you have the rclone zip file downloaded to your computer, follow the section below that matches your platform.

Linux

                1. defining your object storage accounts to continue.

                  macOS

                        1. defining your object storage accounts to continue.

                          Windows

                            1. Configure the S3 and Spaces Accounts

                              Amazon region chart. Finally, we set the access control policy to “private” so that assets are not public by default.

                              Now, we can define a similar section for our DigitalOcean Spaces configuration. Paste the following section in the configuration file:

                              ~/.config/rclone/rclone.conf
                              1. Copying Objects from S3 to Spaces


Justin Ellingwood

author


Was this helpful?
8 Comments


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Very cool guide! Though I was getting the error:

notice: s3: s3 provider "" not known - please set correctly

and I had to add the provider to the config like:

type = s3 provider = AWS env_auth = false access_key_id = <obfuscated> secret_access_key = <obfuscated> region = us-east-2 acl = private [spaces] provider = DigitalOcean type = s3 env_auth = false access_key_id = <obfuscated> secret_access_key = <obfuscated> endpoint = nyc3.digitaloceanspaces.com acl = private

According to Digital Ocean space spec, they can only support 150 request/second per bucket. What are the solutions to move million objects over from S3 within hours if possible?

i want to set mine in amazone s3 but it could not dis play i want some one to tell how to set it i will apreciate who ever do

Setting acl = public is not working. when i did a copy then i am getting file as private

shamseer pc July 25, 2018

I am running on the windows machine and i am getting Failed to copy: InvalidArgument: error when I tried to sync. all other operations are working for me any idea what is this error.

I don’t know why! But, It just works with the version v1.32 of rclone; AND, running from unziped folder, without install; Any news, please post here!

Hello!

I’m getting an error:

2017/11/07 19:38:32 ERROR : uploads/figure_skyline/data/1662323/telaeliana-iii.png: Failed to copy: InvalidArgument: status code: 400, request id: tx00000000000000672de8d-005a020bb8-3f966-nyc3a, host id