[Object Storage Service (OSS)] Data Backup and Migration to AliBaba Cloud OSS using OSSImport
OSSImport is a free tool created by the Alibaba Cloud product team to assist with data backup and migration into the Alibaba Cloud Object Storage Service (OSS). Using OSSImport data can be migrated from either local storage or from third party cloud platforms. Currently supported data sources include Qiniu, Baidu BOS, AWS S3, Azure Blob, Youpai Cloud, Tencent Cloud COS, Kingsoft KS3, HTTP, and other OSS buckets.
Prerequisites
-
Java
Install Java which is a pre-requisite to using the OSSImport tool.1
2
3
4CentOS
sudo yum install -y java-1.8.0-openjdk
sudo yum install -y curl unzip -
curl, unzip
1
2CentOS
yum install -y curl unzip
Insallaion
Download the OSSImport tool using the following ‘curl’ command
1 | curl -o ./ossimport.zip http://gosspublic.alicdn.com/ossimport/standalone/ossimport-2.3.1.zip?spm=a2c63.p38356.a3.3.48ce6605cjP9sM&file=ossimport-2.3.1.zip |
When the download finishes – unzip the archive using the following ‘unzip’ command
1 | unzip ossimport.zip -d ./ossimport |
Configuraion
Edit the local_job.cfg configuration file located at “./ossimport/conf/local_job.cfg” using an editor of your choice – ensure the following fields are updated:
Local
1 | srcType=local |
Run
1 | bash import.sh |
See files whthin the logs/ directory to more information after running.
Known Issues
JDK Version
JDK version must be 7 or 8, otherwise will throw an exception.
1 | java.lang.ClassNotFoundException: javax.xml.bind.JAXBException |
Reference
[3] OSS跨账号复制工具ossimport尝试 · 语雀 - https://g.yuque.com/bzxr/aliyun/vzvblv?language=en-us