Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
381 views
in Technique[技术] by (71.8m points)

How to preserve Date Modified when copying S3 files to Azure Blob Storage via Data Factory

I have an Azure Data Factory which copies files from S3 to Blob Storage. I'd like to keep the S3 Date Modified. I set the activity Preserve: Attributes as seen here but that didn't work. The files in Blob Storage always have the date they were copied over.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

As the doc says:

Copy activity supports preserving the following attributes during data copy:

All the customer specified metadata And the following five data store built-in system properties: contentType, contentLanguage (except for Amazon S3), contentEncoding, contentDisposition, cacheControl.

Preserve: Attributes can't keep the Date Modified. And I don't think this can be achieved by Azure Data Factory. You can refer to Copy Different type of file from Gen1 Azur lake to Azur Gen2 lake with attribute( like last updated)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

56.8k users

...