Skip to content

Instantly share code, notes, and snippets.

@pariser
Created February 23, 2017 19:01
Show Gist options
  • Save pariser/493289f307e3064b027ba50c8b748b97 to your computer and use it in GitHub Desktop.
Save pariser/493289f307e3064b027ba50c8b748b97 to your computer and use it in GitHub Desktop.
#!/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