How to delete files transferred successfully by Datasync?

1

We want to transfer files from our data center to S3 using Datasync. Based on the documentation, apparently, datasync does not delete the file at the source after the data transfer is successful. What is the common practice followed to delete the files locally after they are successfully transferred?

已提问 1 年前1264 查看次数
1 回答
-1

DataSync does not provide an option to delete files from the source location. An option could be to configure the tasks log level to Log all transferred objects, files, and folders. CloudWatch would then contain a list of transferred and verified files that can be used to delete files on the source.

Here is a link to a blog that also discusses using CloudWatch logs to perform post-process activities on transferred files. https://aws.amazon.com/blogs/storage/post-process-your-transferred-data-with-file-level-logging-in-aws-datasync/

AWS
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则