s3cmd icon indicating copy to clipboard operation
s3cmd copied to clipboard

Take into account additional headers in cp and sync commands.

Open bladealslayer opened this issue 13 years ago • 0 comments

Support for condition headers.

It is useful for the cp/sync command to support the extra headers, because conditions such as x-amz-copy-source-if-modified-since can be given. PreconditionFailed errors need to be accounted for in responses, as these are normal when conditions are specified.

Example usage:

s3cmd cp -r -v --add-header "x-amz-copy-source-if-modified-since:date -u -d '1 hour ago' | cut -d\ -f 1-4,6" s3://source-bucket/ s3://dest-bucket/

bladealslayer avatar Oct 12 '12 10:10 bladealslayer