OssToS3 is a free data transfer tool for transfering file and folders from OSS (Alibaba Cloud Object Storage Service) to S3 (Amazon Simple Storage Service). This package or tool is build on Go ( Go is a statically typed, compiled programming language designed at Google). The main advantage is that it runs in windows/linux/mac without extra dependencies
- Clone or download the project from the github repository
- Set up the s3 and oss configuration in the
config.toml
in the project root folder
# This is a TOML document.
[oss]
endpoint = "oss-ap-xxxx-5.aliyuncs.com"
accesskeyid = "XxXXXXXxXXXxxxXx"
secretaccesskey = "XxXNxXxNxXXxxXxxxxxxxxXXXLXxxX"
bucket = "bucket-name"
[s3]
region = "ap-xxxx-1"
accesskeyid = "XXXNXXXNXXNNXXN"
secretaccesskey = "XNXNxxNXnXnnXNXNXnxnnnxXnXnX"
bucket = "bucket-name"
token=""
In case of macOS/Linux,open terminal and go to the project-directory. Inside the project directory there will be an executable file osstos3
.Execute osstos3
after configuring the config.toml
. If there is any error in the configuration it will be be printed in the terminal.
$ cd project-directory
$ ./osstos3
In case of windows,open cmd and go to the project-directory. Inside the project directory there will be an executable file osstos3.exe
.Execute osstos3.exe
after configuring the config.toml
. If there is any error in the configuration it will be be printed in the terminal.
cd C:\download-path\project-directory
start osstos3.exe
If you have already installed GO in your system, you can also run by specifying the go run
command. All you have to do is go the project directory and and follow the below commands.Then go run
command execute the main function in the osstos3.go
file.
$ cd project-directory
$ go run osstos3.go
The GO executable can be create not only for Mac,Linux and Windows but also for other platforms like android,darwin,freebsd and many more.You can visit the offical GO documentation link by clicking here and setup for you own system. The documentation by digital ocean have also mentioned easy methods for building and installing Go programs for different platform.