Skip to content

Instantly share code, notes, and snippets.

@justinnaldzin
Created November 15, 2018 16:42
Show Gist options
  • Save justinnaldzin/d4e58c1535e736ca6ab58cf0115b73ca to your computer and use it in GitHub Desktop.
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
# 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