Skip to content

Instantly share code, notes, and snippets.

@sigma23
Created December 19, 2017 17:03
Show Gist options
  • Save sigma23/912f3074a25fcae780676bd4ce33a867 to your computer and use it in GitHub Desktop.
Save sigma23/912f3074a25fcae780676bd4ce33a867 to your computer and use it in GitHub Desktop.
Quickly zip and upload to S3 and unzip there
# 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