8000 GitHub - xccvv/untar-to-s3: Script to unpack a tar file to an S3 bucket
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
< 8000 div class="flex-auto min-width-0 width-fit"> forked from Kixeye/untar-to-s3

Script to unpack a tar file to an S3 bucket

Notifications You must be signed in to change notification settings

xccvv/untar-to-s3

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

untar-to-s3

Utility script for efficiently unpacking a tarball to an S3 bucket.

The script can load most tar files (e.g. .tar, .tar.gz) and uploads all files to an S3 bucket with an optional prefix.

The script will automatically gzip certain file types, and will add a 'Cache-Control' header.

Requirements::
Python 2.7 boto library (to install: sudo pip install boto)
Recommended::
gevent library to parallelize uploads to S3 (to install: sudo pip install gevent)

For usage overview:

python untar-to-s3.py -h

Example:

export AWS_ACCESS_KEY_ID=<iam account with PubObject permission>
export AWS_SECRET_ACCESS_KEY=<secret from above account>
python untar-to-s3.py web-assets-1.2.23.tar.gz --bucket my-bucket-name --prefix production

About

Script to unpack a tar file to an S3 bucket

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 97.9%
  • PHP 2.1%
0