From 01cc4abbf66d3ac99ebe88c6ae4d896c6a61b941 Mon Sep 17 00:00:00 2001 From: Ryan Tucker Date: Wed, 19 May 2010 08:52:37 -0400 Subject: [PATCH] setting storage-class to REDUCED_REDUNDANCY --- BackupPC_archiveHost_s3 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/BackupPC_archiveHost_s3 b/BackupPC_archiveHost_s3 index a1e7130..ccef681 100755 --- a/BackupPC_archiveHost_s3 +++ b/BackupPC_archiveHost_s3 @@ -228,7 +228,9 @@ def send_file(bucket, filename, cmd, mesg): fd = SlowFile(name=filename, mode='rb') - k.set_contents_from_file(fd, cb=handle_progress) + putHeaders = {'x-amz-storage-class': 'REDUCED_REDUNDANCY'} + + k.set_contents_from_file(fd, headers=putHeaders, cb=handle_progress) return k