Created
November 15, 2018 16:42
-
-
Save justinnaldzin/d4e58c1535e736ca6ab58cf0115b73ca to your computer and use it in GitHub Desktop.
Copy zip files from S3 to local directory, unzip and upload to S3
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
# Copy zip files from S3 to local directory, unzip and upload to S3 | |
aws s3 cp s3://bucket/folder/ . --recursive | |
for f in *.zip; do unzip $f; done | |
aws s3 cp . s3://bucket/folder/ --recursive --exclude "*.zip" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment