node.js - 备份到 documentdb 中

标签 node.js azure azure-cosmosdb

我需要拍摄当前集合的快照,然后随时在 documentdb 中恢复它。可用选项是使用 azure 迁移工具。是否可以通过我的应用程序内置 Node 调用 API 来实现此目的?

最佳答案

是的,您可以使用读取文档源 API 扫描集合中的文档:https://learn.microsoft.com/en-us/rest/api/documentdb/list-documents API 支持“更改源”以从集合中增量检索文档。 Node.js 中的方法是 readDocuments

除此之外,DocumentDB 团队还宣布将推出自助备份,它将拥有自己的 API。您可以在 https://feedback.azure.com/forums/263030-documentdb/suggestions/6331712-backup-solution-for-documentdb 找到该功能的状态

关于node.js - 备份到 documentdb 中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41421857/

相关文章:

node.js - 如何在运行 npm 脚本之前加载依赖项?

javascript - 为什么我的 Sequelize 查询对小数列求和并以字符串形式返回

azure-cosmosdb - 插入文档之前清除 DocumentDB 集合

node.js - 将此消息发送到您的机器人时出错 : HTTP status code NotFound

node.js - MongoDB 更新到 3.0 后 Heroku 应用程序崩溃

c# - 我无法再使用 Azure Function 从 local.setting.json 获取值

azure - 如何将 IP 格式化为 CIDR 格式以基于网络位置控制访问

azure - 无法在 Azure 应用服务上启动 Kestrel 抛出无法配置 HTTPS 端点异常

spring-boot - reactor/netty/resources/ConnectionProvider.fixed(Ljava/lang/String;IJLjava/time/Duration;)Lreactor/netty/resources/ConnectionProvider;

Azure逻辑应用程序: Continuation token is not supported for queries with GROUP BY