NAME

s3cl - Command line for Amazon s3 cloud storage

SYNOPSIS

s3cl command [options]

 s3cl buckets
 s3cl ls <bucket>:[prefix]
 s3cl cp <bucket>:<key> /path/[filename]
 s3cl sync <bucket>:[prefix] /path/
 s3cl rm <bucket>:<key>

Options:
  -help            brief help message
  -man             full documentation

We take NO responsibility for the costs incured through using
this script.

DESCRIPTION

This program gives a command line interface to Amazons s3 storage service. It does not limit the number of requests (which may cost you more money than if you did it a different way!) and each request costs Money (although some costs from EC2 may be $0.0, check latest from Amazon costs page) - we take NO reponsibility for your bill.

COMMANDS

buckets

s3cl buckets

List all buckets for this account.

ls

s3cl ls <bucket>:[prefix]

List contents of a bucket, the optional prefix can be partial, in which case all keys matching this as the start of the key name will be returned. If no prefix is supplied all keys of the bucket will be returned.

cp

s3cl cp <bucket>:<key> target_file

s3cl cp <bucket>:<key> target_directory

Copy a single key from the bucket to the target file, or into the target_directory.

sync

s3cl sync <bucket>:[prefix] target_dir

Downloads all files matching the prefix into a directory structure replicating that of the prefix and all 'sub-directories'. It will download ALL files - even if already on your local disk:

http://www.amazon.com/gp/browse.html?node=16427261

#  Data transfer "in" and "out" refers to transfer into and out 
#  of Amazon S3.  Data transferred between Amazon EC2 and  
#  Amazon S3, is free of charge (i.e., $0.00 per GB), except  
#  data transferred between Amazon EC2 and Amazon S3-Europe,  
#  which will be charged at regular rates.
rm

s3cl rm <bucket>:<key>

Remove a key(file) from the bucket, removing a non-existent file is not classed as an error. Once removed the key (file) can not be restored - so use with care!

ABOUT

This module contains code modified from Amazon that contains the following notice (which is also applicicable to this code):

#  This software code is made available "AS IS" without 
#  warranties of any kind.  You may copy, display, modify and 
#  redistribute the software code either by itself or as incorporated 
#  into your code; provided that you do not remove any proprietary 
#  notices.  Your use of this software code is at your own risk and 
#  you waive any claim against Amazon Digital Services, Inc. or its 
#  affiliates with respect to your use of this software code. 
#  (c) 2006 Amazon Digital Services, Inc. or its affiliates.

AUTHOR

Leo Lapworth <LLAP@cuckoo.org> - Part of the HinuHinu project