S3cmd

description

download

specifications

changelog

S3cmd is a command line tool to upload, retrieve and manage data in Amazon S3. It is best suited for power users who don't fear command line. The project is also ideal for scripts, automated backups triggered from cron, etc.

Amazon S3 is a reasonably priced data storage service. Ideal for off-site backups, archiving and other data storage needs. Check out our pages about Amazon S3 to find out more.

Simple S3cmd HowTo

Register for Amazon AWS / S3

Go to Amazon S3 homepage, click on the "Sign up for web service" button in the right column and work through the registration. You will have to supply your Credit Card details in order to allow Amazon charge you for S3 usage. At the end you should posses your Access and Secret Keys

Run s3cmd --configure

You will be asked for the two keys - copy and paste them from your confirmation email or from your Amazon account page. Be careful when copying them! They are case sensitive and must be entered accurately or you'll keep getting errors about invalid signatures or similar.

Run s3cmd ls to list all your buckets.

As you just started using S3 there are no buckets owned by you as of now. So the output will be empty.

Make a bucket with s3cmd mb s3://my-new-bucket-name

As mentioned above bucket names must be unique amongst _all_ users of S3. That means the simple names like "test" or "asdf" are already taken and you must make up something more original. I sometimes prefix my bucket names with my e-mail domain name (logix.cz) leading to a bucket name, for instance, 'logix.cz-test':

This release added commands for copying and moving remote files, CloudFront support, a new [setacl] command for setting an ACL on existing objects, and recursive and wildcard support for [put], [get], and [del]. --dry-run was enabled for [put], [get], and [sync]. Removal of non-empty buckets is allowed.

A progress meter was implemented.

New --include, --rinclude, and --(r)include-from options were added to override --exclude exclusions.

A --add-header option was added along with a --list-md5 option for [ls].