Created
February 23, 2017 19:01
-
-
Save pariser/493289f307e3064b027ba50c8b748b97 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env bash | |
set -e | |
set -x | |
# To run, install aws cli tools | |
# Run aws configure | |
for bucket in `aws s3 ls | cut -d ' ' -f 3`; do | |
# puts each bucket into its own folder | |
aws s3 sync s3://$bucket $bucket | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment