File across the buckets without changing the time stamps.

0

keep the same timestamp as if auditors ask us to provide the details- it may be a problem. Pls check the possibility of moving the file across the buckets without changing the time stamps.

asked 8 months ago202 views
2 Answers
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.

Habeeb
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

profile pictureAWS
EXPERT
answered 8 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions