2 Answers
- Newest
- Most votes
- Most comments
1
In AWS, when you move a file from one S3 bucket to another, by default, the timestamps associated with the file (such as the creation time and last modified time) remain unchanged. AWS does not alter these timestamps during the transfer process. This behavior ensures that the file's metadata and timestamps are preserved when you perform operations like copying or moving objects between S3 buckets.
answered 8 months ago
1
Hi,
You have to use the --copy-props
of AWS CLI for s3 cp to manage the metadata the way you want. See https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3/cp.html for all details.
This option allows to determine which properties are copied from the source S3 object to destination S3 object.
Best,
Didier
Relevant content
- asked 8 months ago
- asked 2 days ago
- Accepted Answerasked 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 4 months ago