Wednesday, March 28, 2012

s3cmd configure

s3cmd is an open source package of ftp-like interface to Amazon s3 cloud storage.

1. download
http://s3tools.org/s3cmd

2. installation
rpm -i s3cmd

3. configure
s3cmd --configure

Enter new values or accept defaults in brackets with Enter.
Refer to user manual for detailed description of all options.

Access key and Secret key are your identifiers for Amazon S3
Access Key:
Secret Key:

Encryption password is used to protect your files from reading
by unauthorized persons while in transfer to S3
Encryption password:
Path to GPG program [/usr/bin/gpg]:

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't be used if you're behind a proxy
Use HTTPS protocol [No]: Yes

New settings:
Access Key:
Secret Key:
Encryption password:
Path to GPG program: /usr/bin/gpg
Use HTTPS protocol: True
HTTP Proxy server name:
HTTP Proxy server port: 0

Test access with supplied credentials? [Y/n] y
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 '/home/test/.s3cfg'

4. make a bucket
s3cmd mb s3://test

5. list a bucket
s3cmd ls s3://test

6. put a file
s3cmd put test.txt s3://test

7. get a file
s3cmd get s3://test/test.txt

8. delete a file
s3cmd del s3://test/test.txt

9. remove a bucket
s3cmd rb s3://test

reference:
http://s3tools.org/s3cmd

No comments:

Post a Comment