使用 Azure 备份即时还原功能获得更高的备份和还原性能Get improved backup and restore performance with Azure Backup Instant Restore capability

备注

根据用户的反馈,我们已将“VM 备份堆栈 V2”重命名为“即时还原”,以减少与 Azure Stack 功能的混淆。Based on feedback from users, we've renamed VM backup stack V2 to Instant Restore to reduce confusion with Azure Stack functionality. 所有 Azure 备份用户现在已升级到“即时还原”。All Azure Backup users have now been upgraded to Instant Restore.

即时还原的新模型提供以下功能增强:The new model for Instant Restore provides the following feature enhancements:

  • 可以使用执行备份作业期间创建的用于恢复的快照,而无需等待将数据传输到保管库的操作完成。Ability to use snapshots taken as part of a backup job that's available for recovery without waiting for data transfer to the vault to finish. 它缩短了快照在触发还原之前复制到保管库的等待时间。It reduces the wait time for snapshots to copy to the vault before triggering restore.
  • 默认情况下,可在本地保留快照两天,这缩短了备份和还原时间。Reduces backup and restore times by retaining snapshots locally, for two days by default. 此默认快照保留期值可配置为 1 到 5 天的任何值。This default snapshot retention value is configurable to any value between 1 to 5 days.
  • 最大支持 32 TB 的磁盘大小。Supports disk sizes up to 32 TB. Azure 备份不建议重设磁盘大小。Resizing of disks isn't recommended by Azure Backup.
  • 支持标准 SSD 磁盘、标准 HDD 磁盘和高级 SSD 磁盘。Supports Standard SSD disks along with Standard HDD disks and Premium SSD disks.
  • 还原时可以使用非托管 VM 的原始存储帐户(按磁盘)。Ability to use an unmanaged VMs original storage accounts (per disk), when restoring. 即使 VM 的磁盘跨存储帐户进行分布,也具备此能力。This ability exists even when the VM has disks that are distributed across storage accounts. 这可以加快各种 VM 配置的还原操作。It speeds up restore operations for a wide variety of VM configurations.
  • 对于在存储帐户中使用非托管高级磁盘的 VM 的备份(使用即时还原),建议从总的已分配存储空间中分配 50% 的可用空间,这仅在首次备份时是必需的。For backup of VMs that are using unmanaged premium disks in storage accounts, with Instant Restore, we recommend allocating 50% free space of the total allocated storage space, which is required only for the first backup. 首次备份完成后,50% 的可用空间不再是备份的要求。The 50% free space isn't a requirement for backups after the first backup is complete.

功能亮点What's new in this feature

目前,备份作业包括两个阶段:Currently, the backup job consists of two phases:

  1. 获取 VM 快照。Taking a VM snapshot.
  2. 将 VM 快照传输到 Azure 恢复服务保管库。Transferring a VM snapshot to the Azure Recovery Services vault.

只有在完成阶段 1 和 2 之后,才认为已创建恢复点。A recovery point is considered created only after phases 1 and 2 are completed. 在执行此项升级的过程中,完成快照后会立即创建恢复点,可以在相同的还原流中,使用此快照恢复点类型执行还原。As a part of this upgrade, a recovery point is created as soon as the snapshot is finished and this recovery point of snapshot type can be used to perform a restore using the same restore flow. 可以在 Azure 门户中使用“快照”作为恢复点类型来识别此恢复点,快照传输到保管库后,恢复点类型将更改为“快照和保管库”。You can identify this recovery point in the Azure portal by using “snapshot” as the recovery point type, and after the snapshot is transferred to the vault, the recovery point type changes to “snapshot and vault”.

VM 备份堆栈资源管理器部署模型中的备份作业 - 存储和保管库

默认情况下,快照将保留两天。By default, snapshots are retained for two days. 此功能允许从保管库中的这些快照执行还原操作,并可缩短还原时间。This feature allows restore operation from these snapshots there by cutting down the restore times. 它减少了从保管库转换数据和复制回数据所需的时间。It reduces the time required to transform and copy data back from the vault.

功能注意事项Feature considerations

  • 快照将连同磁盘一起存储,以提高恢复点的创建速度并加快还原操作。Snapshots are stored along with the disks to boost recovery point creation and to speed up restore operations. 因此,可以查看 7 天内创建的快照的相应存储成本。As a result, you'll see storage costs that correspond to snapshots taken during this period.
  • 增量快照作为页 blob 存储。Incremental snapshots are stored as page blobs. 使用非托管磁盘的所有用户需要为其本地存储帐户中存储的快照付费。All the users using unmanaged disks are charged for the snapshots stored in their local storage account. 由于托管 VM 备份使用的还原点集合在基础存储级别使用 Blob 快照,因此对于托管磁盘,你将看到与 Blob 快照定价对应的成本,并且成本是递增的。Since the restore point collections used by Managed VM backups use blob snapshots at the underlying storage level, for managed disks you'll see costs corresponding to blob snapshot pricing and they're incremental.
  • 对于高级存储帐户,为即时恢复点创建的快照计入分配空间的 10-TB 限制。For premium storage accounts, the snapshots taken for instant recovery points count towards the 10-TB limit of allocated space.
  • 可以根据还原需求配置快照保留期。You get an ability to configure the snapshot retention based on the restore needs. 可按如下所述,在备份策略窗格中根据要求将快照保留期设置为最短一天。Depending on the requirement, you can set the snapshot retention to a minimum of one day in the backup policy pane as explained below. 如果不经常执行还原,这可帮助节省保留快照的成本。This will help you save cost for snapshot retention if you don’t perform restores frequently.
  • 这是单向升级。It's a one directional upgrade. 一旦升级到即时还原,就不能回退。Once upgraded to Instant restore, you can't go back.

备注

使用此即时还原升级,所有客户(包含新客户和现有客户)的快照保留期都将设置为两天的默认值。With this instant restore upgrade, the snapshot retention duration of all the customers (new and existing both included) will be set to a default value of two days. 但是,可以根据需要将持续时间设置为 1 到 5 天之间的任意值。However, you can set the duration according to your requirement to any value between 1 to 5 days.

成本影响Cost impact

增量快照存储在 VM 的存储帐户中,用于即时恢复。The incremental snapshots are stored in the VM's storage account, which is used for instant recovery. 使用增量快照意味着快照占用的空间等于创建该快照后写入的页面所占用的空间。Incremental snapshot means the space occupied by a snapshot is equal to the space occupied by pages that are written after the snapshot was created. 仍然对快照占用的每 GB 使用空间计费,每 GB 价格与定价页上提到的价格相同。Billing is still for the per GB used space occupied by the snapshot, and the price per GB is same as mentioned on the pricing page. 对于使用非托管磁盘的 VM,可以在每个磁盘的 VHD 文件的菜单中看到快照。For VMs that use unmanaged disks, the snapshots can be seen in the menu for the VHD file of each disk. 对于托管磁盘,快照存储在指定资源组的还原点集合资源中,并且快照本身不直接可见。For managed disks, snapshots are stored in a restore point collection resource in a designated resource group, and the snapshots themselves are not directly visible.

备注

就每周策略来说,快照保留期固定为 5 天。Snapshot retention is fixed to 5 days for weekly policies.

配置快照保留期Configure snapshot retention

使用 Azure 门户Using Azure portal

在 Azure 门户中可以看到,“即时还原”部分下的“VM 备份策略”窗格中添加了一个字段。 In the Azure portal, you can see a field added in the VM Backup Policy pane under the Instant Restore section. 对于与特定备份策略关联的所有 VM,可以在“VM 备份策略”窗格中更改快照保留持续时间。You can change the snapshot retention duration from the VM Backup Policy pane for all the VMs associated with the specific backup policy.

即时还原功能

使用 PowerShellUsing PowerShell

备注

从 Az PowerShell 版本 1.6.0 开始,可以使用 PowerShell 在策略中更新即时还原快照保留期From Az PowerShell version 1.6.0 onwards, you can update the instant restore snapshot retention period in policy using PowerShell

$bkpPol = Get-AzureRmRecoveryServicesBackupProtectionPolicy -WorkloadType "AzureVM"
$bkpPol.SnapshotRetentionInDays=5
Set-AzureRmRecoveryServicesBackupProtectionPolicy -policy $bkpPol

每个策略的默认快照保留期设置为 2 天。The default snapshot retention for each policy is set to two days. 可以将此值更改为 1 到 5 天。You can change the value to a minimum of 1 and a maximum of five days. 就每周策略来说,快照保留期固定为 5 天。For weekly policies, the snapshot retention is fixed to five days.

常见问题Frequently asked questions

哪些因素影响即时还原的成本?What are the cost implications of Instant restore?

快照将连同磁盘一起存储,以加速恢复点的创建和还原操作。Snapshots are stored along with the disks to speed up recovery point creation and restore operations. 因此,你会看到与 VM 备份策略中选择的快照保留期相对应的存储成本。As a result, you'll see storage costs that correspond to the snapshot retention selected as a part of VM backup policy.

在高级存储帐户中,为即时恢复点创建的快照是否会占用 10-TB 快照限制?In Premium Storage accounts, do the snapshots taken for instant recovery point occupy the 10-TB snapshot limit?

是的,对于高级存储帐户,为即时恢复点创建的快照会占用 10 TB 的已分配快照空间。Yes, for premium storage accounts the snapshots taken for instant recovery point occupy 10 TB of allocated snapshot space.

在 5 天期限内,快照保留的工作方式是怎样的?How does the snapshot retention work during the five-day period?

如果每天创建一个新快照,则有 5 个单独的增量快照。Each day a new snapshot is taken, then there are five individual incremental snapshots. 快照大小取决于数据变动率,在大多数情况下,变动率大约为 2%-7%。The size of the snapshot depends on the data churn, which are in most cases around 2%-7%.

即时还原快照是增量快照还是完整快照?Is an instant restore snapshot an incremental snapshot or full snapshot?

即时还原功能创建的快照是增量快照。Snapshots taken as a part of instant restore capability are incremental snapshots.

如何计算即时还原功能大约增加的成本?How can I calculate the approximate cost increase due to instant restore feature?

这取决于 VM 的变动率。It depends on the churn of the VM. 在稳定状态下,可以假设增加的成本 = 快照保留期 * 每个 VM 的每日变动率 * 每 GB 存储成本。In a steady state, you can assume the increase in cost is = Snapshot retention period daily churn per VM storage cost per GB.

如果还原点的恢复类型是“快照和保管库”,而我执行了还原操作,那么,将使用哪种恢复类型?If the recovery type for a restore point is “Snapshot and vault” and I perform a restore operation, which recovery type will be used?

如果恢复类型是“快照和保管库”,则会从本地快照自动执行还原,与从保管库执行还原相比,其速度要快得多。If the recovery type is “snapshot and vault”, restore will be automatically done from the local snapshot, which will be much faster compared to the restore done from the vault.

如果选择的还原点(第 2 层)保留期小于快照(第 1 层)保留期,会发生什么情况?What happens if I select retention period of restore point (Tier 2) less than the snapshot (Tier1) retention period?

除非删除快照(第 1 层),否则新模型不允许删除还原点(第 2 层)。The new model doesn't allow deleting the restore point (Tier2) unless the snapshot (Tier1) is deleted. 建议将还原点(第 2 层)保留期设置为大于快照保留期。We recommend scheduling restore point (Tier2) retention period greater than the snapshot retention period.

为何我即使在备份策略中设置了保留期,我的快照也仍然存在?Why does my snapshot still exist, even after the set retention period in backup policy?

如果恢复点包含快照并且它是可用的最新恢复点,则它会一直保留到下一次成功备份为止。If the recovery point has a snapshot and it's the latest recovery point available, it's retained until the next successful backup. 这取决于指定的“垃圾回收”(GC) 策略。This is according to the designated "garbage collection" (GC) policy. 它要求至少始终存在一个最新的恢复点,以防所有后续备份由于 VM 中出现问题而失败。It mandates that at least one latest recovery point always be present, in case all subsequent backups fail due to an issue in the VM. 正常情况下,在恢复点过期后,将在最多 24 小时内进行清理。In normal scenarios, recovery points are cleaned up at most 24 hours after they expire.

我不需要即时还原功能。I don’t need Instant Restore functionality. 是否可以禁用它?Can it be disabled?

为所有人启用了即时还原功能,不能禁用它。Instant restore feature is enabled for everyone and can't be disabled. 可以将快照保留期缩短到最少一天。You can reduce the snapshot retention to a minimum of one day.