4

Azure SQL 已内置备份。如果从门户中删除 SQL 数据库和服务器,这些备份将丢失。

什么是备份 Azure SQL 的最佳实践,可以承受从门户中删除服务器。

我已手动将数据库导出到存储位置,但 Azure 表示不应将其用作备份。为什么不应该使用它,我应该怎么做?

4

3 回答 3

2

如果你想直接控制你的备份,那么最好的机制是相当直接的。

  1. 创建数据库的副本。这确保没有活动的交易,因为它是一个副本。
  2. 使用 BACPAC 过程导出数据库的副本。BACPAC 不尊重交易,这就是我们创建副本的原因。
  3. 将其存储在您想要的任何地方。
  4. 删除数据库的副本,因为您要在它存在时为此付费。

您可以使用 BACPAC 导入新的 Azure 数据库,也可以将其导入 Azure、AWS 或本地的 VM。

于 2017-11-30T12:21:13.343 回答
1

Azure SQL 已内置备份。如果从门户中删除 SQL 数据库和服务器,这些备份将丢失。

是的,如果删除托管 SQL 数据库的 Azure SQL 服务器,则属于该服务器的所有数据库也将被删除且无法恢复。您无法恢复已删除的服务器。

什么是备份 Azure SQL 的最佳实践,可以承受从门户中删除服务器。

如果您的 Azure SQL Server 已被删除,您需要创建支持票证来恢复数据库。

当您确实需要删除 SQL 服务器然后尝试对其进行备份时,您可以将 Azure 恢复服务保管库配置为存储 Azure SQL 数据库备份,然后使用 Azure 门户或 PowerShell 使用保管库中保留的备份来恢复数据库。

为什么不应该使用它,我应该怎么做?

我认为您可以将数据库导出到本地存储,但将其还原到 Azure 很复杂。此外,它可能会更改您的 SQL 数据库的某些信息,并且可能需要迁移到 Azure。

于 2017-11-30T05:31:13.270 回答
0

Well, there is no real answer to this, you can use any backup method you like. Its mostly a personal preference.

But the easiest way (probably) is using Azure Backup Vault to do long term backups (which is a native way for Azure). Its pretty easy to configure (next\next\next) and it is not connected to the Azure SQL Server, so when you delete the server the backups are there.

于 2017-11-30T05:23:12.663 回答