Friday, April 27, 2012

installing s3cmd in ubuntu

Advertisements

s3cmd is a command line tool for uploading, downloading and managing file and directories with amazon simple storage s3. It is very useful when running scripts and scheduling scripts with cron. First you have to install s3cmd package which is available from s3tools.org. In this post we discuss how to install and configure s3cmd in ubuntu or debian systems.


Installing s3cmd :

Import S3tools signing key:
wget -O- -q http://s3tools.org/repo/deb-all/stable/s3tools.key | sudo apt-key add -

Add the repo to sources.list:
sudo wget -O /etc/apt/sources.list.d/s3tools.list http://s3tools.org/repo/deb-all/stable/s3tools.list

Refresh package cache and install the newest s3cmd:
sudo apt-get update && sudo apt-get install s3cmd

Configuring s3cmd :

Now configure it. It will ask your access key, secret key and encryption key(just hit enter if you don't want).
s3cmd --configure


Now you will be able to list your buckets in your amazon s3 storage using the following command.
s3cmd ls


See this post for installing s3cmd in centos and s3cmd examples also.

No comments:

Post a Comment

Be nice. That's all.