Cosmos Table API - perform custom scheduled backup

六月ゝ 毕业季﹏ 提交于 2020-01-16 09:11:30

问题


I am using a Cosmos Table API application and I need to backup all the data from all the tables every 15 minutes. How can I do this?


回答1:


Since ADF only supports cosmos db sql api and mongo api,not for table api,it seems that you have to consider using Migration Tool.

You could follow above example command-line:

dt.exe /s:AzureTable /s.ConnectionString:"DefaultEndpointsProtocol=https;AccountName=;AccountKey=" /s.Table:metrics /s.InternalFields:All /s.Filter:"PartitionKey eq 'Partition1' and RowKey gt '00001'" /s.Projection:ObjectCount;ObjectSize /t:DocumentDBBulk /t.ConnectionString:" AccountEndpoint=;AccountKey=;Database=;" /t.Collection:metrics /t.CollectionThroughput:2500

Then turn it into a bat file and set it to Windows Timing Task.



来源:https://stackoverflow.com/questions/58202455/cosmos-table-api-perform-custom-scheduled-backup

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!