Object Storage - How to migrate from OVHcloud Swift Object Storage to OVHcloud S3-compatible Object Storage
Objective
OVHcloud offers two types of Object Storage: one based on OpenStack Swift and the other based on native S31 APIs.
If you want to know more about available Object Storage offerings and classes, refer to our guide "Object Storage - Choosing the right storage class for your needs".
This guide provides detailed steps to help you migrate from OVHcloud Swift Object Storage to OVHcloud S3-compatible Object Storage using Rclone tool, a command-line tool that can be used to manage cloud storage resources.
OVHcloud provides services which you are responsible for with regard to their configuration and management. You are therefore responsible for ensuring they function correctly.
This guide is designed to assist you in common tasks as much as possible. If you encounter any difficulties performing these actions, please contact a specialist service provider and/or discuss the issue with our community of users. OVHcloud cannot provide you with technical support in this regard.
Requirements
- An OVHcloud account with access to both Swift Object Storage containers and S3-compatible buckets.
- An OVHcloud Swift Object Storage source container in your current Object Storage with:
- Your bucket name.
- Your associated user and password.
- The associated region ID.
- An OVHcloud S3-compatible Object Storage destination bucket with:
- Your bucket name.
- Your associated access and secret keys.
- The associated region ID.
- An OVHcloud Public Cloud instance with Rclone installed working as the management workstation in our scenario. To get the best results, within your budget, we suggest at least the following specifications:
- b3-16: 4 v-cores and 16 GB of RAM
- c3-16: 8 v-cores and 16 GB of RAM
Instructions
1 - Installing Rclone
If you haven’t done it already, install Rclone by following the instructions from its documentation, based on your OS configuration.
2 - Configuring Rclone
After installing Rclone on your virtual machine, configure its connection to both the source container and destination buckets. To do so, you can either follow Rclone step by step configuration or you can also create and modify the configuration file yourself.
2.1 - Using Rclone config command
This command will open the configuration menu and will guide you step by step with the configuration. Then:
- For your source container: we recommand using your OpenStack user and associated rclone config file from the OVHcloud Control Panel. Follow the steps in this guide to access the config file associated to your OpenStack user.
- For your destination bucket: the official OVHcloud provider configuration is available here and will guide you step by step.
2.2 - Using Rclone config file
As said, you can also create and modify the configuration file yourself with the following command:
If the configuration file doesn’t exist, you’ll be prompted to add the following configuration using your preferred editor. For example, on Linux you can use nano :
In both cases your configuration blocks should look like:
To get the list of OVHcloud region endpoints, refer to our guide "Object Storage - Endpoints and Object Storage geoavailability".
You can then test your two connections using the rclone config command by as below:
3 - Running Rclone
Depending on your strategy you can use two different commands to start the migration.
You can you use the rclone sync command to start the migration of one or all buckets. As detailed in the documentation, the rclone synccommand will make source and destination identical. Be careful then when using it.
You can also use the rclone copy command that will copy files from your source to your destination.
In both cases, remember to change source-container-name and destination-bucket-name to your OVHcloud Swift source container and your OVHcloud S3-compatible desintation bucket names, respectively:
or:
--progress shows progress during transfer.
Migration status
We recommend comparing the source and destination buckets after migration. Your source and OVHcloud destination buckets can be compared via command line or directly from the OVHcloud Control Panel
You can check the size of both buckets and number of objects using this command line:
Go further
If you need training or technical assistance to implement our solutions, contact your sales representative or click on this link to get a quote and ask our Professional Services experts for assisting you on your specific use case of your project.
Join our community of users.
1: S3 is a trademark of Amazon Technologies, Inc. OVHcloud’s service is not sponsored by, endorsed by, or otherwise affiliated with Amazon Technologies, Inc.