Anonymous - 2011-08-19

thanks for this great tool!

I have one question concerning the sync command. I need to sync files from local to remote, and used them within a private cloudfront distribution.
I need so to grant access to bucket origin owner.

s3cmd setacl works well for that:
s3cmd setacl -acl-grant=read:xxx  s3://mybucket/myfile

I'd like the same behaviour with sync command. I was thinking this command should work, but it is not the case:
s3cmd sync -acl-grant=read:xxxxxxxxx /mylocaldirectory/ s3://mybucket/

Can you let me know how I can do that?


Ps: I use the lastest s3cmd version:
s3cmd version 1.0.1