S3Sync.net
February 02, 2014, 01:20:10 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: s3sync.rb --headers (modified code attached)  (Read 3628 times)
mj
Newbie
*
Posts: 1


View Profile
« on: August 29, 2009, 05:15:15 PM »

I wanted to add Content-Encoding:gzip to my s3sync.rb headers, but I didn't see a way to do it, so I modified the code to accept a --headers parameter which accepts arbitrary headers.

Example:
s3sync.rb -r ./testdir/ mybucket: --headers="Content-Encoding:gzip Cache-Control:public Expires:'31 December 2037 23:59:59 GMT' x-amz-acl:public-read"

Please be skeptical of my code, see attached file.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!