s3cmd

Author:
Michal Ludvig
Links:
Website
Download
License:
GPL version 2

Example Usage

Setup s3cmd

Pre-requisites:

  • python
  • python-openssl

To use s3cmd with Walrus, clone the forked version from github, or download the repository as a zip file and unpack into a temporary location.

Change directory to <repository_dir> and run python setup.py.

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