官方文檔如下
https://docs.digitalocean.com/products/spaces/reference/s3cmd/
1. 使用s3cmd
centos 安裝s3cmd
$ pip install s3cmd
執行s3cmd
$ s3cmd --help
windows下安裝
下載 s3cmd github https://github.com/s3tools/s3cmd
$ cd s3cmd-master
$ python setup.py install
$ cd /d C:\python36\Scripts
$ python s3cmd --help
初始化
$ s3cmd --configure
依序填入設定
Access Key: DO00Y7GP8K666PJKCCC
Secret Key: +35kvCTiA35/peUl6l8nF1enQQpCCCCCCCCCC
Default Region [US]: sgp1
Secret Key: +35kvCTiA35/peUl6l8nF1enQQpCCCCCCCCCC
Default Region [US]: sgp1
Use "s3.amazonaws.com" for S3 Endpoint and not modify it to the target Amazon S3.
S3 Endpoint [s3.amazonaws.com]: sgp1.digitaloceanspaces.com
Use "%(bucket)s.s3.amazonaws.com" to the target Amazon S3. "%(bucket)s" and "%(location)s" vars can be used
if the target S3 system supports dns based buckets.
DNS-style bucket+hostname:port template for accessing a bucket [%(bucket)s.s3.amazonaws.com]: %(bucket)s.sgp1.digitaloceanspaces.com
Encryption password is used to protect your files from reading
by unauthorized persons while in transfer to S3
Encryption password: 111111
Path to GPG program:
When using secure HTTPS protocol all communication with Amazon S3
servers is protected from 3rd party eavesdropping. This method is
slower than plain HTTP, and can only be proxied with Python 2.7 or newer
Use HTTPS protocol [Yes]:
On some networks all internet access must go through a HTTP proxy.
Try setting it here if you can't connect to S3 directly
HTTP Proxy server name:
New settings:
Access Key: DO00Y7GP8K666PJCCC
Secret Key: +35kvCTiA35/peUl6l8nF1enQQpCCCCCCCC
Default Region: sgp1
S3 Endpoint: sgp1.digitaloceanspaces.com
DNS-style bucket+hostname:port template for accessing a bucket: %(bucket)s.sgp1.digitaloceanspaces.com
Encryption password: CCCCCC
Path to GPG program: None
Use HTTPS protocol: True
HTTP Proxy server name:
HTTP Proxy server port: 0
Test access with supplied credentials? [Y/n]
Please wait, attempting to list all buckets...
Success. Your access key and secret key worked fine :-)
Now verifying that encryption works...
Not configured. Never mind.
Save settings? [y/N] Y
Configuration saved to 'C:\Users\joker\AppData\Roaming\s3cmd.ini'
2. 使用 Cyberduck
下載網址: https://cyberduck.io/
安裝啟動後, 點左上角 Open Connection, 填入設定
選擇 Amazon s3, Server: sgp1.digitaloceanspaces.com
Access Key ID: DO00Y7GP8K666PJKZAB9
Secret Access Key: ***********************
單獨使用 test1 bucket, 查看 digital ocean spaces test bucket 的 end point
輸入在 server 欄位, 其他跟上面一樣填入, 關閉設定視窗後雙擊 設定連接 bucket
3. 使用 s3 browser for windows
下載網址 E2E Cloud
留言
張貼留言