Skip to content

jcarbaugh/s3arch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

s3arch

Utility for creating archival backups of S3 buckets.

Installation

pip install s3arch

AWS key and secret can be specified by the -k and -s command line arguments, AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables, or .boto configuration files.

Example

Backup and compress myawesomebucket bucket to ~/Downloads:

s3arch -o ~/Downloads -z myawesomebucket

Usage

usage: s3arch.py [-h] [-k KEY] [-s SECRET] [-o PATH]
                 [-p PREFIX] [-v] [-z]
                 BUCKET [BUCKET ...]

positional arguments:
  BUCKET                buckets to archive

optional arguments:
  -h, --help            show this help message and exit
  -k KEY, --key KEY     S3 key
  -s SECRET, --secret SECRET
                        S3 secret key
  -o PATH, --outputdir PATH
                        directory in which the archives will be placed
                        (default is current directory)
  -p PREFIX, --prefix PREFIX
                        prefix added to the local bucket directory name (and
                        tar archive if -z)
  -v                    verbose output to stdout
  -z                    compress backup with gzip

About

Backup and archive S3 buckets

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages