Cosmos Table API-执行自定义的计划备份 [英] Cosmos Table API - perform custom scheduled backup

查看:70
本文介绍了Cosmos Table API-执行自定义的计划备份的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Cosmos Table API应用程序,我需要每15分钟从所有表中备份所有数据.我该怎么办?

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?

推荐答案

由于ADF仅支持cosmos db

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:"D​​efaultEndpointsProtocol=https;AccountName=;AccountKey="/s.Table:metrics/s.InternalFields:All/s.Filter:PartitionKey eq'Partition1'和RowKey gt'00001'"/s.Projection:ObjectCount;ObjectSize/t:DocumentDBBulk/t.ConnectionString:"AccountEndpoint =; AccountKey =; Database =;"/t.Collection:metrics/t.CollectionThroughput:2500

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

然后将其转换为bat文件并将其设置为Windows Timing Task.

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

这篇关于Cosmos Table API-执行自定义的计划备份的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆