How To Install s3cmd
erics, Posted June 7th, 2013 at 2:10:14pm
Install Procedure
Download and extract into /usr/local:
http://downloads.sourceforge.net/project/s3tools/s3cmd/1.0.1/s3cmd-1.0.1.tar.gz
1 2 3 4 5 6 |
cd /usr/local/bin ln -s /usr/local/s3cmd-1.0.1/s3cmd /usr/local/bin/s3cmd --configure Access Key: {ACCESS_KEY} Secret Key: {SECRET_KEY} Encryption password: {PASSWORD} |
Configuration saved to '/root/.s3cfg'
Command Line Examples
List all buckets:
s3cmd ls
Make a new bucket in the default region (US):
s3cmd mb s3://{YOUR_BUCKET_HERE}
Make a new bucket in a specific region:
s3cmd mb --bucket-location={DATACENTER} s3://{YOUR_BUCKET_HERE}
As of now the datacenters are: US (default), EU, us-west-1, and ap-southeast-1
Remove an empty bucket:
s3cmd rb s3://{YOUR_BUCKET_HERE}
Delete all files in a bucket:
s3cmd del --recursive --force s3://{YOUR_BUCKET_HERE}
Leave Your Comment
All fields marked with "*" are required.