创建托管磁盘的增量快照Creating an incremental snapshot for managed disks

增量快照是托管磁盘的时间点备份,拍摄后,这些备份仅包含自上次快照以来的所有更改。Incremental snapshots are point in time backups for managed disks that, when taken, consist only of all the changes since the last snapshot. 尝试下载或以其他方式使用增量快照时,将使用完整的 VHD。When you attempt to download or otherwise use an incremental snapshot, the full VHD is used. 托管磁盘快照的这种新功能可能使它们更具成本效益,因为你不必在拍摄单个快照时存储整个磁盘,除非你选择这么做。This new capability for managed disk snapshots potentially allows them to be more cost effective, since, unless you choose to, you do not have to store the entire disk with each individual snapshot. 与常规快照一样,增量快照可用于创建完整的托管磁盘,也可用于制作常规快照。Just like regular snapshots, incremental snapshots can be used to either create a full managed disk or to make a regular snapshot.

增量快照和常规快照之间存在一些差异。There are a few differences between an incremental snapshot and a regular snapshot. 增量快照始终使用标准 HDD 存储,而不管磁盘的存储类型如何,而常规快照可以使用高级 SSD。Incremental snapshots will always use standard HDDs storage, irrespective of the storage type of the disk, whereas regular snapshots can use premium SSDs. 如果在高级存储上使用常规快照来横向扩展 VM 部署,建议在共享映像库中的标准存储上使用自定义映像。If you are using regular snapshots on Premium Storage to scale up VM deployments, we recommend you use custom images on standard storage in the Shared Image Gallery. 它将帮助你以更低的成本实现更大的规模。It will help you achieve a more massive scale with lower cost.

增量快照还提供差异功能,但仅适用于托管磁盘。Incremental snapshots also offer a differential capability, only available to managed disks. 它们用于获取同一托管磁盘的两个增量快照之间的差异,可适用至块级别。They enable you to get the changes between two incremental snapshots of the same managed disks, down to the block level. 在跨区域复制快照时,可以使用此功能来减少数据占用空间。You can use this capability to reduce your data footprint when copying snapshots across regions. 例如,可以将第一个增量快照下载为另一个区域中的基本 Blob。For example, you can download the first incremental snapshot as a base blob in another region. 对于后续增量快照,只需要将自上次快照以来的更改复制到基本 Blob 中。For the subsequent incremental snapshots, you can copy only the changes since the last snapshot to the base blob. 复制更改后,可以在基本 Blob 上拍摄表示另一个区域中磁盘的时间点备份的快照。After copying the changes, you can take snapshots on the base blob that represent your point in time backup of the disk in another region. 可以从基本 Blob 或从其他区域中的基本 Blob 上的快照还原磁盘。You can restore your disk either from the base blob or from a snapshot on the base blob in another region.

描述跨区域复制的增量快照的图表。快照会执行各种 API 调用,直到最终形成每个快照的页 blob。

区域可用性Regional availability

增量快照现在可在 GA 中的所有 Azure 中国世纪互联区域中使用。Incremental snapshots are now available in all the Azure China 21Vianet regions in GA.

限制Restrictions

  • 增量快照当前无法在订阅之间转移。Incremental snapshots currently cannot be moved between subscriptions.
  • 当前,在任何给定时间,只能为某个特定系列的最多 5 个快照生成 SAS URI。You can currently only generate SAS URIs of up to five snapshots of a particular snapshot family at any given time.
  • 不能在磁盘的订阅之外为该磁盘创建增量快照。You cannot create an incremental snapshot for a particular disk outside of that disk's subscription.
  • 每五分钟最多可为每个磁盘创建 7 个增量快照。Up to seven incremental snapshots per disk can be created every five minutes.
  • 总共可以为单个磁盘创建 200 个增量快照。A total of 200 incremental snapshots can be created for a single disk.
  • 如果父磁盘的大小调整超过 4 TB 限额,则无法获取分别在磁盘大小调整之前和之后拍摄的快照之间的差异。You cannot get the changes between snapshots taken before and after the change in the size of the parent disk across 4-TB boundary. 需要再次下载调整大小后创建的快照的完整副本。You have to again download the full copy of the snapshot created after the resize. 在那之后,可以获取大小调整超过 4 TB 后创建的快照之间的差异。Subsequently, you can get the changes between the snapshots created after the resize across 4-TB boundary.

门户Portal

  1. 登录到 Azure 门户并导航到要拍摄快照的磁盘。Sign into the Azure portal and navigate to the disk you'd like to snapshot.

  2. 在磁盘上,选择“创建快照”****On your disk, select Create a Snapshot

    屏幕截图。磁盘的边栏选项卡,其中突出显示了“+创建快照”****,因为这是必选的。

  3. 选择要使用的资源组并输入名称。Select the resource group you'd like to use and enter a name.

  4. 选择“增量”,然后选择“查看 + 创建”**** ****Select Incremental and select Review + Create

    屏幕截图。创建快照边栏选项卡,填写名称并选择增量,然后创建快照。

  5. 选择“创建”****Select Create

    屏幕截图。验证快照的验证页,确认所做的选择,然后创建快照。

后续步骤Next steps

要查看演示使用 .NET 的增量快照的差异功能的示例代码,请参阅通过增量快照差异功能将 Azure 托管磁盘备份复制到另一区域If you'd like to see sample code demonstrating the differential capability of incremental snapshots, using .NET, see Copy Azure Managed Disks backups to another region with differential capability of incremental snapshots.