Skip to content

Instantly share code, notes, and snippets.

@sumikawa
Created May 22, 2010 08:48
Show Gist options
  • Save sumikawa/409931 to your computer and use it in GitHub Desktop.
Save sumikawa/409931 to your computer and use it in GitHub Desktop.
--- s3sync.rb- 2010-05-22 17:39:32.000000000 +0900
+++ s3sync.rb 2010-05-22 17:40:59.000000000 +0900
@@ -505,6 +505,7 @@
headers['x-amz-acl'] = 'public-read' if $S3syncOptions['--public-read']
headers['Expires'] = $S3syncOptions['--expires'] if $S3syncOptions['--expires']
headers['Cache-Control'] = $S3syncOptions['--cache-control'] if $S3syncOptions['--cache-control']
+ headers['x-amz-storage-class'] = 'REDUCED_REDUNDANCY'
fType = @path.split('.').last
debug("File extension: #{fType}")
if defined?($mimeTypes) and fType != '' and (mType = $mimeTypes[fType]) and mType != ''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment