This script will make a backup of all your S3 buckets, from multiple AWS accounts.
Your IAM profile only needs the AmazonS3ReadOnlyAccess policy.
The credentials
file should be one pair of Access key ID and Secret access
key per row, separated by semicolon.
<access_key_id>:<secret_access_key>
Now, just run the script!
The script will loop through the credentials in your credentials
file
and sync all your buckets to the data/
subdirectory.
./backup.sh