s3cmd

Author Michal Ludvig
Homepage s3cmd
Documentation http://s3tools.org/s3cmd
Discussion forum
Download downloads
Source subversion
Version 0.9.8.3
License GPL version 2

Example Usage

Setup s3cmd

Pre-requisites: python and python-openssl.

To use s3cmd with Walrus, download version 0.9.8.3 from the s3cmd sourceforge site and untar it.

Please copy and paste the patch from using the following link (into a file called s3cmd-0.9.8.3.patch).

s3cmd version 0.9.8.3 patch

Change dir to s3cmd-0.9.8.3. Apply the patch (patch -p1 < s3cmd-0.9.8.3.patch).

Configuration

Create a config file for Walrus (called s3cfg.walrus in the examples below). Please use the following sample config as a guideline.

Sample config for Walrus

If you also wish to interact with Amazon's S3, you will need another config file. Please use the following example.

Sample config for S3

Examples

  • Create a bucket s3cmd -c s3cfg.walrus mb s3://testbucket
  • Delete a bucket s3cmd -c s3cfg.walrus rb s3://testbucket
  • List all buckets s3cmd -c s3cfg.walrus ls
  • List the contents of a bucket s3cmd -c s3cfg.walrus ls s3://testbucket
  • Put an object s3cmd -c s3cfg.walrus put <filename> s3://testbucket
  • Get an object s3cmd -c s3cfg.walrus get s3://testbucket/<key> <filename>
  • Delete an object s3cmd -c s3cfg.walrus del s3://testbucket/<key>

Please use s3cmd -h for more options.