-
-
Notifications
You must be signed in to change notification settings - Fork 905
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
s3cmd (2.4.0) not preserving timestamps #1367
Comments
Hi as mentioned in AWS S3 documentation you cannot preserve the last modified date of an object: https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html#AmazonS3-GetObject-response-header-LastModified it is handled by AWS S3 itself. |
That is not what I am talking about. I am talking about timestamps in x-amz-meta-s3cmd-attrs, which should be preserved when restoring from s3. As the s3 documentation states this should work but it doesn´t => bug |
I'm struggling with the exact problem. I started out on a old version 2.1.0 and just upgraded to the latest 2.4.0-dev through the master.zip. Ran a put/get with the following commands.
Retrieved the x-amz-meta-s3cmd-attrs which looks good.
stat for the original and retrieved file
|
I ran the get with --debug, looks like the x-amz-meta-s3cmd-attrs are properly retrieved and parsed, the mtime is correct as 1674469831 but the last row in the output sets the mtime to 1715700371.
|
Looks like this same issue has been investigated in #670 and identified as a bug to be fixed. The mtime is properly set if you do a remote2local sync, but get will not update. sync command
stat output
|
Is this a bug, what am I doing wrong? The IAM user has all privileges in the policy assigned
The text was updated successfully, but these errors were encountered: