s3cmd

Author:
Michal Ludvig
Website:
http://s3tools.org/s3cmd
Download URL:
http://s3tools.org/download
Categories:
License:
GPL version 2

Example Usage

Setup s3cmd

Pre-requisites:

  • python
  • python-openssl

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

Copy and paste the s3cmd version 0.9.8.3 patch into a file called s3cmd-0.9.8.3.patch.

Change dir to s3cmd-0.9.8.3 and 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) using this sample config file.

If you also wish to interact with Amazon's S3, you will need another config file.

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  s3://testbucket

Get an object

s3cmd -c s3cfg.walrus get s3://testbucket/ 

Delete an object

s3cmd -c s3cfg.walrus del s3://testbucket/

Please use s3cmd -h for more options.

Share This Page

Share this Page on Facebook Share this Page on Twitter Email a Friend