Sending files using aws sync

时间:2015-10-30 23:12:21

标签: aws-cli

I'm using the aws sync command to have jenkins send files to s3. Problem is that aws sync sends the same file again even though it has the same file name as the one in s3. That is because we have to tar then untar the file before sending to s3 and tarring and untar changes the modification time. Is there anyway to send files to s3 more efficiently so that the same file does not get sent?

1 个答案:

答案 0 :(得分:-1)

您可以指定--size-only标志,使每个对象的大小成为决定是否从源同步到目标的唯一标准。 (docs