Tutorial for US3SYNC Migration (From Aliyun OSS to UCloud Global US3)
This tutorial explains how to migrate from Aliyun OSS in the Singapore region to UCloud Global US3 in the Bangkok region. The migration architecture diagram is as follows:
一、Preparations
1.1 Purchase a UHost instance in the Bangkok region
Public IP: 128.1.79.13
Private IP: 10.31.87.189
After purchasing the UHost, click 'Login' or remotely access the host.
1.2 Set up the migration environment
Enter the following commands in order (requires root user privileges):
yum install -y telnet expect rsync
wget https://ufile-release.cn-bj.ufileos.com/US3SYNC/v1.10.5_beta02/US3SYNC.tgz
tar -zxvf US3SYNC.tgz
cd ./US3SYNC
./console.sh start
Access US3SYNC at the following link: https://128.1.79.13 (UHost Public IP)
1.3 The UCloud US3 endpoints for different regions are as follows:
Region | Public Domain Name | Private Domain Name |
Hong Kong | hk.ufileos.com | internal-hk-01.ufileos.com |
Los Angeles | us-ca.ufileos.com | internal-us-ca-01.ufileos.com |
Singapore | sg.ufileos.com | internal-sg-01.ufileos.com |
Jakarta | idn-jakarta.ufileos.com | internal-idn-jakarta-01.ufileos.com |
Taipei | tw-tp.ufileos.com | internal-tw-tp.ufileos.com |
Lagos | afr-nigeria.ufileos.com | internal-afr-nigeria.ufileos.com |
São Paulo | bra-saopaulo.ufileos.com | internal-bra-saopaulo.ufileos.com |
Dubai | uae-dubai.ufileos.com | internal-uae-dubai.ufileos.com |
Frankfurt | ge-fra.ufileos.com | internal-ge-fra.ufileos.com |
Ho Chi Minh City | vn-sng.ufileos.com | internal-vn-sng.ufileos.com |
Washington | us-ws.ufileos.com | internal-us-ws.ufileos.com |
Mumbai | ind-mumbai.ufileos.com | internal-ind-mumbai.ufileos.com |
Seoul | kr-seoul.ufileos.com | internal-kr-seoul.ufileos.com |
Tokyo | jpn-tky.ufileos.com | internal-jpn-tky.ufileos.com |
Bangkok | th-bkk.ufileos.com | internal-th-bkk.ufileos.com |
United Kingdom | uk-london.ufileos.com | internal-uk-london.ufileos.com |
二、Aliyun Singapore OSS to UCloud Bangkok US3 Migration
2.1 Set the Aliyun OSS migration endpoint
We have already created an OSS bucket named ‘aliyun-singapore-src’ on Aliyun. Then you follow the steps below on the console of Aliyun:
The two images above contain four values that need to be recorded:
1. Bucket name: aliyun-singapore-src
2. Endpoint: oss-ap-southeast-1.aliyuncs.com
3. AccessKey ID
4. AccessKey Secret
Return to the US3SYNC, then enter the four recorded values. Click ‘OK’.
2.2 Set the Migrating Nodes
Enter the private IP of the Bangkok UHost, input the UHost username and password, and specify the Working Directory. Click ‘OK’.
2.3 Set the UCloud Global US3 endpoint
In the UCloud Global console, purchase a US3 in the Bangkok region and set the name as ‘bangkok-mig-destination’.
Create a new Token and select the bucket in the Bangkok region.
The following four values need to be recorded:
1、 bucket name: bangkok-mig-destination
2、 Public key: TOKEN_81ced282-ad49-47e5-827c-2f7c920f0325
3、 Private key: TOKEN_81ced282-ad49-47e5-827c-2f7c920f0325
4、 Domain name: internal-th-bkk.ufileos.com (Since both the migration UHost and US3 are located in Bangkok, we can use the private domain name. For details, refer to section 1.3)
Fill in the recorded values as shown in the image, and click "OK".
2.4 Implement the US3SYNC migration task
Create task and fill in the required information as instructed.
The image above indicates that the migration was successful, with a total of one file migrated.
Check the UCloud Global console to verify that the file has been successfully migrated to US3.