paultuckey/s3_bucket_to_bucket_copy_py — pull request #5 by bpennypacker (2014-10-28 14:43:47+00:00)
Title: Added command line options for verbose/quiet output, encryption, acl, etc..

Added a bunch of command line parameters by incorporating argparse:

$ ./s3_bucket_to_bucket_copy.py -h
usage: s3_bucket_to_bucket_copy.py [-h] [-c CONFIG] [-v] [-q] [-a] [-e] [-r]
src_bucket dest_bucket

s3 bucket to bucket copy

positional arguments:
src_bucket Source s3 bucket name and optional path
dest_bucket Destination s3 bucket name

optional arguments:
-h, --help show this help message and exit
-c CONFIG, --config CONFIG
s3 Configuration file. Defaults to ~/.s3cfg
-v, --verbose Verbose output
-q, --quiet No output
-a, --default-acl Skip copying ACL from src bucket and use the default
ACL of the destination bucket instead
-e, --encrypt Use server-side encryption to encrypt the file on S3
-r, --reduced-redundancy
Store objects in the dest bucket using the reduced
redundancy storage class