If the tool has been installed, skip this step go to the next step.
yum install python-setuptools
yum install wget
mv master.zip s3cmd-master.zip
python setup.py install
Run the following command to configure s3cmd:
s3cmd --configure Access Key: Enter the AK. Secret Key: Enter the SK. Default Region: indicates the region where the bucket is located. S3 Endpoint: Refer to the OBS endpoint. DNS-style bucket+hostname:port template for accessing a bucket: indicates the server address with the bucket name, for example, %(bucket)s.obs.myclouds.com. Encryption password: Press Enter. Path to GPG program: Press Enter. Use HTTPS protocol: specifies whether to use HTTPS. The value can be Yes or No.) HTTP Proxy server name: indicates the proxy address to connect the cloud from an external network. (If you do not need connect to the cloud, press Enter.) HTTP Proxy server port: indicates the proxy port to connect to the cloud from an external network (If you do not need connect to the cloud, press Enter.) Test access with supplied credentials? y (If Success. Your access key and secret key worked fine :-) is displayed, the connection is successful.) Save settings? y (Specifies whether to save the configuration. If y is entered, the configuration will be saved.)
The configuration is saved in the /root/.s3cfg directory. If you want to modify the configuration, run the s3cmd --configure command again or directly edit the .s3cfg file by running the vi .s3cfg command.
s3cmd put image.qcow2 s3://mybucket/