Tip:
Highlight text to annotate it
X
How to use Amazon S3 tool s3cmd
S3cmd is a command line (CLI) tool for uploading, retrieving and managing data in Amazon S3
First, Install s3cmd tool
I am using ubuntu 12.04 #apt-get install sdcmd
Command failed, since there is no config file
Create a config file "myconf.txt" and add 'Access' and 'Secret Access' keys in it.
Replace xxxxxx with your Access and Secret Access Keys
Use S3fox firefox addon to browse S3
These are the buckets in my S3 account
How to switch region
Edit myconf.tx file and following lines host_base = s3-us-west-1.amazonaws.com host_bucket = %(bucket)s.s3-us-west-1.amazonaws.com
List buckets in the us-west-1 region
I will show, How to download the file "alchemy_proj.tar.gz" from the bucket "import-export" in the "us-west-1" region
Command to download file "alchemy_proj.tar.gz" from S3 to local system s3cmd -c myconf.txt get s3://import-export/alchemy_proj.tar.gz .
We are going to download the file "alchemy_proj.tar.gz" in bucket import-export
Command to download file "alchemy_proj.tar.gz" from S3 to local system s3cmd -c myconf.txt get s3://import-export/alchemy_proj.tar.gz .
Thanks