Re: [S3tools-general] Patches for updating headers without re-uploading

2011-01-09 Thread Jim Popovitch
On Mon, Jan 10, 2011 at 00:17, Michal Ludvig wrote: > Hi Jim, > > I'm afraid that the only reliable way to copy all the attributes across > (i.e. mime type, acl, s3cmd stored attribs, etc) is to run HEAD request > on the object to learn all the current attribs and then COPY with them > included. >

Re: [S3tools-general] Patches for updating headers without re-uploading

2011-01-09 Thread Michal Ludvig
On 01/10/2011 11:44 AM, Jim Popovitch wrote: > On Sun, Jan 9, 2011 at 01:35, Jobe Bittman wrote: >> Were you able to see where to fix that? > Hi Jobe, > > Here's the patch output of what I changed and tested. It's inline > here so that can be verified first, rather than having a file that ppl > i

Re: [S3tools-general] Patches for updating headers without re-uploading

2011-01-09 Thread Jim Popovitch
On Sun, Jan 9, 2011 at 01:35, Jobe Bittman wrote: > Were you able to see where to fix that? Hi Jobe, Here's the patch output of what I changed and tested. It's inline here so that can be verified first, rather than having a file that ppl immediate download and apply. ;-) -Jim P. $ diff -r -u

Re: [S3tools-general] Patches for updating headers without re-uploading

2011-01-08 Thread Jim Popovitch
On Sun, Jan 9, 2011 at 01:35, Jobe Bittman wrote: > Were you able to see where to fix that? I looked at the patch, but haven't yet tested preserving the existing header data. I'm presuming that the s3cmd headers get stripped too. Will test some tomorrow. -Jim P. > > On Sat, Jan 8, 2011 at 10:2

Re: [S3tools-general] Patches for updating headers without re-uploading

2011-01-08 Thread Jobe Bittman
Were you able to see where to fix that? On Sat, Jan 8, 2011 at 10:28 PM, Jim Popovitch wrote: > On Mon, Jan 3, 2011 at 23:59, Jim Popovitch wrote: > >> From: Jobe Bittman [mailto:j...@opencandy.com] > >> Sent: Thursday, November 04, 2010 10:01 PM > >> To: s3tools-general@lists.sourceforge.net >

Re: [S3tools-general] Patches for updating headers without re-uploading

2011-01-08 Thread Jim Popovitch
On Mon, Jan 3, 2011 at 23:59, Jim Popovitch wrote: >> From: Jobe Bittman [mailto:j...@opencandy.com] >> Sent: Thursday, November 04, 2010 10:01 PM >> To: s3tools-general@lists.sourceforge.net >> Subject: [S3tools-general] Patches for updating headers without re-uploading >> >> I modified s3cmd 1.0

Re: [S3tools-general] Patches for updating headers without re-uploading

2011-01-03 Thread Jim Popovitch
> From: Jobe Bittman [mailto:j...@opencandy.com] > Sent: Thursday, November 04, 2010 10:01 PM > To: s3tools-general@lists.sourceforge.net > Subject: [S3tools-general] Patches for updating headers without re-uploading > > I modified s3cmd 1.0.0-rc1 to allow replacing headers such as Cache-Control >

Re: [S3tools-general] Patches for updating headers without re-uploading

2010-11-08 Thread Steve Jenkins
I realize that s3cmd is for S3 commands (duh), but we've been using s3cmd to upload graphics from our server to a bucket which then get pushed out to our CDN on CloudFront. With new files, they push out right away. But when we overwrite files in our bucket, we have to manually invalidate them on Cl