Skip to content

Instantly share code, notes, and snippets.

@stefhen
Created March 12, 2013 18:41
Show Gist options
  • Save stefhen/5145679 to your computer and use it in GitHub Desktop.
Save stefhen/5145679 to your computer and use it in GitHub Desktop.
Change all S3 objects to REDUCED_REDUNDANCY
#!/usr/bin/env python
import boto
s3 = boto.connect_s3()
b = s3.lookup('BUCKET_NAME_HERE')
[x.change_storage_class('REDUCED_REDUNDANCY') for x in b.get_all_keys()]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment