Backup Azure Blob Storage Dynamically with Azure Data Factory
Problem
ussually client, have request backup csv/txt file from azure blob storage from folder/container to another folder/container. my assumtion for backup file daily is for the next analytics like for machine learning or predictive analytics.
Solution
You can using copy task as ussualy like image below:
and then we can config source and sink. and then in that sink you can add dynamic on that file name like image below:
on dynamic content you can add script:
@concat(‘<filename>_’,formatDateTime(addhours(utcnow(),7),’yyyyMMddHHmmss’),’.txt’)
I’m using addhours +7 for the Indonesia time than UTC time.
Conclusion
in Azure Data Factory we can backup data with copy task to another folder/container with dynamic content.