您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

使用 Resource Manager 部署模型将文件还原到 Windows Server 或 Windows 客户端计算机Restore files to a Windows server or Windows client machine using Resource Manager deployment model

本文介绍如何从备份保管库还原数据。This article explains how to restore data from a backup vault. 若要还原数据,请在 Microsoft Azure 恢复服务 (MARS) 代理中使用“恢复数据”向导。To restore data, you use the Recover Data wizard in the Microsoft Azure Recovery Services (MARS) agent. 还原数据时,可能会:When you restore data, it is possible to:

  • 将数据还原到备份时所在的同一台计算机。Restore data to the same machine from which the backups were taken.
  • 将数据还原到备用计算机。Restore data to an alternate machine.

在 2017 年 1 月,Microsoft 发布了 MARS 代理的预览版更新。In January 2017, Microsoft released a Preview update to the MARS agent. 除了提供 Bug 修补程序外,此更新还启用了“即时还原”,允许用户将可写入恢复点快照作为恢复卷装载。Along with bug fixes, this update enables Instant Restore, which allows you to mount a writeable recovery point snapshot as a recovery volume. 随后,用户便可以浏览恢复卷,并将文件复制到本地计算机,从而选择性地还原文件。You can then explore the recovery volume and copy files to a local computer thereby selectively restoring files.

备注

如果想要使用“即时还原”来还原数据,请安装 Azure 备份更新(2017 年 1 月)The January 2017 Azure Backup update is required if you want to use Instant Restore to restore data. 此外,必须在支持文章所列的区域中的保管库内保护备份数据。Also the backup data must be protected in vaults in locales listed in the support article. 请查阅 Azure 备份更新(2017 年 1 月)以获取支持“即时还原”的区域的最新列表。Consult the January 2017 Azure Backup update for the latest list of locales that support Instant Restore. “即时还原”目前并非在所有区域都可用。Instant Restore is not currently available in all locales.

在 Azure 门户中将“即时还原”与恢复服务保管库配合使用。Use Instant Restore with Recovery Services vaults in the Azure portal. 如果在备份保管库中存储了数据,则这些保管库已转换为恢复服务保管库。If you stored data in Backup vaults, they have been converted to Recovery Services vaults. 如果要使用即时还原,请下载 MARS 更新,并按照提及即时还原的过程进行操作。If you want to use Instant Restore, download the MARS update, and follow the procedures that mention Instant Restore.

备注

Azure 具有用于创建和处理资源的两个不同的部署模型:Resource Manager 和经典Azure has two different deployment models for creating and working with resources: Resource Manager and classic. 本文介绍如何使用 Resource Manager 部署模型。Microsoft 建议对新部署使用该模型,而不是经典部署模型。This article covers using the Resource Manager deployment model, which Microsoft recommends for new deployments instead of the classic deployment model.

使用即时还原将数据恢复到同一台计算机Use Instant Restore to recover data to the same machine

如果意外删除了某个文件并想要在同一台计算机(备份位置)中还原文件,以下步骤可帮助你恢复数据。If you accidentally deleted a file and wish to restore it to the same machine (from which the backup is taken), the following steps will help you recover the data.

  1. 打开“Microsoft Azure 备份”管理单元。Open the Microsoft Azure Backup snap in. 如果不知道该管理单元的安装位置,请在计算机或服务器中搜索“Microsoft Azure 备份”。If you don't know where the snap in was installed, search the computer or server for Microsoft Azure Backup.

    该桌面应用应该会显示在搜索结果中。The desktop app should appear in the search results.

  2. 单击“恢复数据”启动向导。Click Recover Data to start the wizard.

    恢复数据

  3. 要将数据还原到同一台服务器或计算机,请在“开始”窗格中选择“此服务器(<server name>)”,然后单击“下一步”。On the Getting Started pane, to restore the data to the same server or computer, select This server (<server name>) and click Next.

    选择“此服务器”选项将数据还原到同一台计算机

  4. 在“选择恢复模式”窗格中选择“单个文件和文件夹”,并单击“下一步”。On the Select Recovery Mode pane, choose Individual files and folders and then click Next.

    浏览文件

    重要

    还原“单个文件和文件夹”选项需要 .NET Framework 4.5.2 或更高版本。The option to restore Individual Files and Folders requires .NET Framework 4.5.2 or higher. 如果未看到“单个文件和文件夹”选项,则必须将 .NET Framework 升级到 4.5.2 或更高版本,然后重试。If you do not see the Individual Files and Folders option, you must upgrade .NET Framework to version 4.5.2 or higher and try again.

  5. 在“选择卷和日期”窗格中,选择包含想要还原的文件和/或文件夹的卷。On the Select Volume and Date pane, select the volume that contains the files and/or folders you want to restore.

    在日历中选择一个恢复点。On the calendar, select a recovery point. 可从任意恢复时间点还原。You can restore from any recovery point in time. 粗体显示的日期指示至少有一个可用的恢复点。Dates in bold indicate the availability of at least one recovery point. 选择日期后,如果有多个恢复点可用,请从“时间”下拉菜单中选择特定的恢复点。Once you select a date, if multiple recovery points are available, choose the specific recovery point from the Time drop-down menu.

    卷和日期

  6. 选择要还原的恢复点后,单击“装载”。Once you have chosen the recovery point to restore, click Mount.

    Azure 备份会装载本地恢复点,并将其用作恢复卷。Azure Backup mounts the local recovery point, and uses it as a recovery volume.

  7. 在“浏览和恢复文件”窗格中,单击“浏览”打开 Windows 资源管理器并找到所需的文件和文件夹。On the Browse and Recover Files pane, click Browse to open Windows Explorer and find the files and folders you want.

    恢复选项

  8. 在 Windows 资源管理器中,复制想要还原的文件和/或文件夹,将其粘贴到服务器或计算机本地的任何位置。In Windows Explorer, copy the files and/or folders you want to restore and paste them to any location local to the server or computer. 可从恢复卷直接打开或流式传输文件,并验证是否恢复的是正确的版本。You can open or stream the files directly from the recovery volume and verify that you are recovering the correct versions.

    将文件和文件夹从装载的卷复制并粘贴到本地位置

  9. 完成还原文件和/或文件夹后,请在“浏览和恢复文件”窗格中单击“卸载”。When you are finished restoring the files and/or folders, on the Browse and Recovery Files pane, click Unmount. 然后单击“是”,确认要卸载该卷。Then click Yes to confirm that you want to unmount the volume.

    卸载卷并确认

    重要

    如果不单击“卸载”,恢复卷将保持装载 6 个小时(从装载时算起)。If you do not click Unmount, the Recovery Volume will remain mounted for 6 hours from the time when it was mounted. 但是,如果正在持续进行文件复制,装载时间延长至最多 24 小时。However, the mount time is extended upto a maximum of 24 hours in case of an ongoing file-copy. 装载卷时,不会运行任何备份操作。No backup operations will run while the volume is mounted. 计划为在装载卷时运行的任何备份操作会在卸载恢复卷后运行。Any backup operation scheduled to run during the time when the volume is mounted, will run after the recovery volume is unmounted.

使用即时还原将数据还原到另一台计算机Use Instant Restore to restore data to an alternate machine

如果整个服务器断开连接,仍可以将 Azure 备份中的数据恢复到另一台计算机。If your entire server is lost, you can still recover data from Azure Backup to a different machine. 下面的步骤演示了工作流。The following steps illustrate the workflow.

这些步骤中使用的术语包括:The terminology used in these steps includes:

  • 源计算机 – 从中创建备份并且当前不可用的原始计算机。Source machine – The original machine from which the backup was taken and which is currently unavailable.
  • 目标计算机 – 要将数据恢复到的计算机。Target machine – The machine to which the data is being recovered.
  • 示例保管库源计算机目标计算机注册到的恢复服务保管库。Sample vault – The Recovery Services vault to which the Source machine and Target machine are registered.

备注

无法将备份还原到运行较低 操作系统版本的目标计算机。Backups can't be restored to a target machine running an earlier version of the operating system. 例如,在 Windows 8 或更高版本的计算机上,可以还原在 Windows 7 计算机中创建的备份。For example, a backup taken from a Windows 7 computer can be restored on a Windows 8, or later, computer. 但是,在 Windows 8 计算机上创建的备份无法还原到 Windows 7 计算机。A backup taken from a Windows 8 computer cannot be restored to a Windows 7 computer.

  1. 在“目标计算机”中打开“Microsoft Azure 备份”管理单元。Open the Microsoft Azure Backup snap in on the Target machine.

  2. 确保“目标计算机”和“源计算机”已注册到同一个恢复服务保管库。Ensure the Target machine and the Source machine are registered to the same Recovery Services vault.

  3. 单击“恢复数据”打开“恢复数据向导”。Click Recover Data to open the Recover Data wizard.

    恢复数据

  4. 在“开始”窗格中选择“另一台服务器”On the Getting Started pane, select Another server

    另一台服务器

  5. 提供对应于“示例保管库”的保管库凭据文件,并单击“下一步”。Provide the vault credential file that corresponds to the Sample vault, and click Next.

    如果保管库凭据文件无效(或已过期),请在 Azure 门户中从“示例保管库”下载新的保管库凭据文件。If the vault credential file is invalid (or expired), download a new vault credential file from the Sample vault in the Azure portal. 提供有效的保管库凭据后,会显示相应备份保管库的名称。Once you provide a valid vault credential, the name of the corresponding Backup Vault appears.

  6. 在“选择备份服务器”窗格中,从显示的计算机列表中选择“源计算机”并提供通行短语。On the Select Backup Server pane, select the Source machine from the list of displayed machines and provide the passphrase. 然后单击“下一步”。Then click Next.

    计算机列表

  7. 在“选择恢复模式”窗格中选择“单个文件和文件夹”,并单击“下一步”。On the Select Recovery Mode pane, select Individual files and folders and click Next.

    搜索

  8. 在“选择卷和日期”窗格中,选择包含想要还原的文件和/或文件夹的卷。On the Select Volume and Date pane, select the volume that contains the files and/or folders you want to restore.

    在日历中选择一个恢复点。On the calendar, select a recovery point. 可从任意恢复时间点还原。You can restore from any recovery point in time. 粗体显示的日期指示至少有一个可用的恢复点。Dates in bold indicate the availability of at least one recovery point. 选择日期后,如果有多个恢复点可用,请从“时间”下拉菜单中选择特定的恢复点。Once you select a date, if multiple recovery points are available, choose the specific recovery point from the Time drop-down menu.

    搜索项

  9. 单击“装载”,在本地将恢复点装载为目标计算机上的恢复卷。Click Mount to locally mount the recovery point as a recovery volume on your Target machine.

  10. 在“浏览和恢复文件”窗格中,单击“浏览”打开 Windows 资源管理器并找到所需的文件和文件夹。On the Browse and Recover Files pane, click Browse to open Windows Explorer and find the files and folders you want.

    加密

  11. 在 Windows 资源管理器中,从恢复卷复制文件和/或文件夹,并将其粘贴到“目标计算机”位置。In Windows Explorer, copy the files and/or folders from the recovery volume and paste them to your Target machine location. 可以从恢复卷直接打开或流式传输文件,并验证是否恢复了正确的版本。You can open or stream the files directly from the recovery volume and verify the correct versions are recovered.

    加密

  12. 完成还原文件和/或文件夹后,请在“浏览和恢复文件”窗格中单击“卸载”。When you are finished restoring the files and/or folders, on the Browse and Recovery Files pane, click Unmount. 然后单击“是”,确认要卸载该卷。Then click Yes to confirm that you want to unmount the volume.

    加密

    重要

    如果不单击“卸载”,恢复卷将保持装载 6 个小时(从装载时算起)。If you do not click Unmount, the Recovery Volume will remain mounted for 6 hours from the time when it was mounted. 但是,如果正在持续进行文件复制,装载时间延长至最多 24 小时。However, the mount time is extended upto a maximum of 24 hours in case of an ongoing file-copy. 装载卷时,不会运行任何备份操作。No backup operations will run while the volume is mounted. 计划为在装载卷时运行的任何备份操作会在卸载恢复卷后运行。Any backup operation scheduled to run during the time when the volume is mounted, will run after the recovery volume is unmounted.

后续步骤Next steps