List all buckets for this account.
s3cl mkbucket --bucket sombucketname [--jurisdiction [EU|US]]
Create a new bucket, optionally specifying what jurisdiction it should be created in.
s3cl ls <bucket>:[prefix]
List contents of a bucket, the optional <B>prefixB> can be partial, in which case all keys matching this as the start of the key name will be returned. If no <B>prefixB> is supplied all keys of the bucket will be returned.
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.
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:
s3cl sync_up [--acl_short=public-read] <bucket>:[prefix] /path/
Upload all the files below /path/ to S3, with an optional prefix at the start of the key name. The existing S3 files and meta data are fetched from S3 and the md5 (etag) is compaired to what is on the local disk, files are not upload if the content has not changed.
Use --acl_short to set access control, options from Net::Amazon::S3::Bucket#set_acl this is only applied when the file is uploaded.
Currently this does NOT remove old files from S3, and if there is any change to a file then the entire file will be reuploaded.
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!
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.
Leo Lapworth <LLAP@cuckoo.org> - Part of the HinuHinu project
|perl v5.20.3||S3CL (1)||2015-04-12|