-
Notifications
You must be signed in to change notification settings - Fork 4.5k
"aws s3 sync --exact-timestamps" does not correctly set timestamps #2000
Description
When synchronizing material between S3 buckets, or when synchronizing to or from a local filesystem, the files seem to wind up timestamped with the time of the transfer, not the timestamp of the transferred file. Timestamps should be preserved when syncing to S3, and when syncing S3 folders to S3 folders. Otherwise, content that is synced form one S3 bucket to another will have confusing tmestamps, and switching from one upstream source bucket to another for local directory syncs will cause unnecessary updates with mismatched timestamps.
If this cannot be done, if the S3 objects do not support resetting the timestamps on them after transfer, then the command line argument should be rejected as invalid if the target of the sync is an S3 bucket.