azure - 如果有定期备份,如何恢复 Cosmos DB 容器?

标签 azure azure-cosmosdb restore

在我不小心删除了 Cosmos DB 容器后,有办法恢复它吗?我只是将实时环境与本地 Cosmos DB 模拟器混淆了。

当我进入设置 - 备份和恢复时,它显示:

Your account is on periodic backup mode. You can now change to continuous mode for a better backup and restore experience. Change to continuous mode

这是否意味着仍然可以以某种方式恢复删除操作?但我找不到恢复删除的选项。

最佳答案

对于配置了定期备份的 Cosmos DB 容器(正如您所提到的,此处就是这种情况),Microsoft 有 very prescriptive guidance on how to potentially restore the data 。 TL;DR - 您应该尽快向 Microsoft Azure 支持团队提交支持请求(确保包含链接文章中所示的他们需要的所有信息)。他们在链接文档中的用词选择强烈表明了这一点的时间敏感性,以及您需要在相对较短的时间内提出此类请求以确保获得最佳结果。

为了方便/后代,我从下面的链接文档中复制了相关部分(强调我的):

Request data restore from a backup

If you accidentally delete your database or a container, you can file a support ticket or call the Azure support to restore the data from automatic online backups. Azure support is available for selected plans only such as Standard, Developer, and plans higher than those. Azure support is not available with Basic plan.

To restore a specific snapshot of the backup, Azure Cosmos DB requires that the data is available during the backup cycle for that snapshot. You should have the following details before requesting a restore:

  • Have your subscription ID ready.

  • Based on how your data was accidentally deleted or modified, you should prepare to have additional information. It is advised that you have the information available ahead to minimize the back-and-forth that can be detrimental in some time sensitive cases.

  • If the entire Azure Cosmos DB account is deleted, you need to provide the name of the deleted account. If you create another account with the same name as the deleted account, share that with the support team because it helps to determine the right account to choose. It's recommended to file different support tickets for each deleted account because it minimizes the confusion for the state of restore.

  • If one or more databases are deleted, you should provide the Azure Cosmos DB account, and the Azure Cosmos DB database names and specify if a new database with the same name exists.

  • If one or more containers are deleted, you should provide the Azure Cosmos DB account name, database names, and the container names. And specify if a container with the same name exists.

  • If you have accidentally deleted or corrupted your data, you should contact Azure support within 8 hours so that the Azure Cosmos DB team can help you restore the data from the backups. Before you create a support request to restore the data, make sure to increase the backup retention for your account to at least seven days. It’s best to increase your retention within 8 hours of this event. This way the Azure Cosmos DB support team will have enough time to restore your account.

In addition to Azure Cosmos DB account name, database names, container names, you should specify the point in time to which the data can be restored to. It is important to be as precise as possible to help us determine the best available backups at that time. It is also important to specify the time in UTC.

关于azure - 如果有定期备份,如何恢复 Cosmos DB 容器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/74789258/

相关文章:

c++ - C++如何获取Azure容器的共享访问签名

c# - .NET Azure Function - 如何从流返回 JSON 对象?

mysql - 将数据从 MySQL(本地)复制到 Cosmos DB

java - 返回到 fragment ArrayList 变空时(恢复 ArrayList)

azure - Azure Front Door Premium 中的 URL 重写

Mongodb辅助角色抛出System.IO.FileNotFoundException

c# - DocumentDB 分页标记。不断获得 "wrong"一个

java - 为什么从浏览器调用与从 Java 调用时 Cosmos 存储过程的运行方式不同?

android - 如何在 Android 中保存和恢复 ExpandableListView 的状态?

Java 我可以在不知道其大小的情况下从文件恢复二维数组吗?