Created
December 19, 2017 17:03
-
-
Save sigma23/912f3074a25fcae780676bd4ce33a867 to your computer and use it in GitHub Desktop.
Quickly zip and upload to S3 and unzip there
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# From https://stackoverflow.com/questions/14495176/compress-file-on-s3 | |
aws s3 sync s3://your-pics . | |
for i in `find | grep -E "\.jpg$|\.jpg$"`; do gzip "$i" ; echo $i; done | |
aws s3 sync . s3://your-pics --content-encoding gzip --dryrun |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment