Skip to content

What is the option --exact-timestamp in s3 sync good for, if timestamps can't be set and are not preserved? #7071

Answered by aBurmeseDev
apacha asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @apacha, thanks for reaching out. This topic has come up a few times before in other issues. I think this comment addresses your question:

The --exact-timestamps is not for setting the LastModifiedTime of the S3 objects. This is not possible to do via the S3 api...In other words, this is only used to control what files are synced, not to sync the timestamps.

Also this comment from a related issue provides more context as well. As mentioned there, you could pass the last modified time as metadata. Hopefully that helps, please let us know if you have any feedback on how the documentation for this could be improved.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by aBurmeseDev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants