使用 DPM 将 SharePoint 场备份到 AzureBack up a SharePoint farm to Azure with DPM

使用 System Center Data Protection Manager (DPM) 将 SharePoint 场备份到 Azure,其方法与备份其他数据源极为类似。You back up a SharePoint farm to Azure by using System Center Data Protection Manager (DPM) in much the same way that you back up other data sources. Azure 备份提供灵活的备份计划来创建每日、每周、每月或每年备份点,并提供适用于各种备份点的保留策略选项。Azure Backup provides flexibility in the backup schedule to create daily, weekly, monthly, or yearly backup points and gives you retention policy options for various backup points. 利用 DPM,不仅可以存储本地磁盘副本以实现快速的恢复时间目标 (RTO),还可以将副本存储到 Azure 进行经济高效的长期保留。DPM provides the capability to store local disk copies for quick recovery-time objectives (RTO) and to store copies to Azure for economical, long-term retention.

DPM 的 Microsoft Azure 备份支持以下方案:Azure Backup for DPM supports the following scenarios:

工作负载Workload 版本Version Sharepoint 部署SharePoint deployment DPM 部署类型DPM deployment type DPM - System Center 2012 R2DPM - System Center 2012 R2 保护和恢复Protection and recovery
SharePointSharePoint SharePoint 2013、SharePoint 2010、SharePoint 2007、SharePoint 3.0SharePoint 2013, SharePoint 2010, SharePoint 2007, SharePoint 3.0 作为物理服务器或 Hyper-V/VMware 虚拟机部署的 SharePointSharePoint deployed as a physical server or Hyper-V/VMware virtual machine
--------------
SQL AlwaysOnSQL AlwaysOn
物理服务器或本地 Hyper-V 虚拟机Physical server or on-premises Hyper-V virtual machine 支持从更新汇总 5 备份到 AzureSupports backup to Azure from Update Rollup 5 保护 SharePoint 场恢复选项:从磁盘恢复点恢复场、数据库、文件或列表项。Protect SharePoint Farm recovery options: Recovery farm, database, and file or list item from disk recovery points. 从 Azure 恢复点恢复场和数据库。Farm and database recovery from Azure recovery points.

开始之前Before you start

在将 SharePoint 场备份到 Azure 之前,需要确保满足几个条件。There are a few things you need to confirm before you back up a SharePoint farm to Azure.

先决条件Prerequisites

在继续之前,请确保符合使用 Azure 备份保护工作负荷的所有先决条件Before you proceed, make sure that you have met all the prerequisites for using Azure Backup to protect workloads. 先决条件包括如下任务:创建备份保管库、下载保管库凭据、安装 Azure 备份代理,以及在保管库中注册 DPM/Azure 备份服务器。Some tasks for prerequisites include: create a backup vault, download vault credentials, install Azure Backup Agent, and register DPM/Azure Backup Server with the vault.

DPM 代理DPM agent

必须在运行 SharePoint Server 或 SQL Server 的服务器以及属于 SharePoint 场的任何其他服务器上安装 DPM 代理。The DPM agent must be installed on the server that's running SharePoint, the servers that are running SQL Server, and all other servers that are part of the SharePoint farm. 有关如何设置保护代理的详细信息,请参阅设置保护代理For more information about how to set up the protection agent, see Setup Protection Agent. 唯一的例外是,只能在单个 Web 前端 (WFE) 服务器上安装代理。The one exception is that you install the agent only on a single web front end (WFE) server. DPM 只需将一台 WFE 服务器上的代理作为保护的入口点。DPM needs the agent on one WFE server only to serve as the entry point for protection.

SharePoint 场SharePoint farm

针对场中的每 1000 万个项,必须有至少 2 GB 的卷空间用于放置 DPM 文件夹。For every 10 million items in the farm, there must be at least 2 GB of space on the volume where the DPM folder is located. 此空间对目录生成是必要的。This space is required for catalog generation. 为了使 DPM 恢复特定项(网站集合、站点、列表、文档库、文件夹、单个文档与列表项),目录生成将创建一个包含在每个内容数据库中的 URL 列表。For DPM to recover specific items (site collections, sites, lists, document libraries, folders, individual documents, and list items), catalog generation creates a list of the URLs that are contained within each content database. 可以在 DPM 管理员控制台的“恢复”任务区域中,查看“可恢复项”窗格中的 URL 列表。You can view the list of URLs in the recoverable item pane in the Recovery task area of DPM Administrator Console.

SQL ServerSQL Server

DPM 以 LocalSystem 帐户的形式运行。DPM runs as a LocalSystem account. 若要备份 SQL Server 数据库,DPM 需要对运行 SQL Server 的服务器的帐户具有 sysadmin 特权。To back up SQL Server databases, DPM needs sysadmin privileges on that account for the server that's running SQL Server. 备份之前,先在运行 SQL Server 的服务器上将 NT AUTHORITY\SYSTEM 设置为 sysadminSet NT AUTHORITY\SYSTEM to sysadmin on the server that's running SQL Server before you back it up.

如果 SharePoint 场有使用 SQL Server 别名配置的 SQL Server 数据库,请在 DPM 要保护的前端 Web 服务器上安装 SQL Server 客户端组件。If the SharePoint farm has SQL Server databases that are configured with SQL Server aliases, install the SQL Server client components on the front-end Web server that DPM will protect.

SharePoint ServerSharePoint Server

尽管性能取决于许多因素,例如 SharePoint 场的大小,但一般做法是使用一台 DPM 服务器来保护 25 TB 的 SharePoint 场。While performance depends on many factors such as size of SharePoint farm, as general guidance one DPM server can protect a 25 TB SharePoint farm.

DPM 更新汇总 5DPM Update Rollup 5

要开始在 Azure 上保护 SharePoint 场,需要安装 DPM 更新汇总 5 或更高版本。To begin protection of a SharePoint farm to Azure, you need to install DPM Update Rollup 5 or later. 如果使用 SQL AlwaysOn 配置 SharePoint 场,更新汇总 5 将提供在 Azure 上保护该场的功能。Update Rollup 5 provides the ability to protect a SharePoint farm to Azure if the farm is configured by using SQL AlwaysOn. 有关详细信息,请参阅介绍 DPM 更新汇总 5 的博客文章For more information, see the blog post that introduces DPM Update Rollup 5

不支持的功能What's not supported

  • 保护 SharePoint 场的 DPM 不会保护搜索索引或应用程序服务数据库。DPM that protects a SharePoint farm does not protect search indexes or application service databases. 需要单独为这些数据库配置保护。You will need to configure the protection of these databases separately.
  • DPM 不提供横向扩展文件服务器 (SOFS) 共享托管的 SharePoint SQL Server 数据库备份。DPM does not provide backup of SharePoint SQL Server databases that are hosted on scale-out file server (SOFS) shares.

配置 SharePoint 保护Configure SharePoint protection

必须使用 ConfigureSharePoint.exe 配置 SharePoint VSS 编写器服务(WSS 编写器服务),才能使用 DPM 保护 SharePoint。Before you can use DPM to protect SharePoint, you must configure the SharePoint VSS Writer service (WSS Writer service) by using ConfigureSharePoint.exe.

可以在前端 Web 服务器的 [DPM 安装路径]\bin 文件夹中找到 ConfigureSharePoint.exe。You can find ConfigureSharePoint.exe in the [DPM Installation Path]\bin folder on the front-end web server. 此工具可将 SharePoint 场的凭据提供给保护代理。This tool provides the protection agent with the credentials for the SharePoint farm. 应在单个 WFE 服务器上运行该工具。You run it on a single WFE server. 如果有多个 WFE 服务器,在配置保护组时,请只选择其中一个。If you have multiple WFE servers, select just one when you configure a protection group.

配置 SharePoint VSS 写入器服务To configure the SharePoint VSS Writer service

  1. 在 WFE 服务器上的命令提示符下,切换到 [DPM 安装路径]\bin\On the WFE server, at a command prompt, go to [DPM installation location]\bin\
  2. 输入 ConfigureSharePoint-EnableSharePointProtection。Enter ConfigureSharePoint -EnableSharePointProtection.
  3. 输入场管理员凭据。Enter the farm administrator credentials. 此帐户应是 WFE 服务器上本地管理员组的成员。This account should be a member of the local Administrator group on the WFE server. 如果场管理员不是本地管理员,请在 WFE 服务器上授予以下权限:If the farm administrator isn't a local admin grant the following permissions on the WFE server:
    • 授予 WSS_Admin_WPG 组对 DPM 文件夹 (%Program Files%\Microsoft Data Protection Manager\DPM) 的完全控制权。Grant the WSS_Admin_WPG group full control to the DPM folder (%Program Files%\Microsoft Data Protection Manager\DPM).
    • 授予 WSS_Admin_WPG 组对 DPM 注册表项 (HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft Data Protection Manager) 的读取访问权限。Grant the WSS_Admin_WPG group read access to the DPM Registry key (HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft Data Protection Manager).

备注

每当 SharePoint 场管理员凭据发生更改时,都需要重新运行 ConfigureSharePoint.exe。You'll need to rerun ConfigureSharePoint.exe whenever there's a change in the SharePoint farm administrator credentials.

使用 DPM 备份 SharePoint 场Back up a SharePoint farm by using DPM

如前所述配置 DPM 和 SharePoint 场之后,可以使用 DPM 保护 SharePoint。After you have configured DPM and the SharePoint farm as explained previously, SharePoint can be protected by DPM.

保护 SharePoint 场To protect a SharePoint farm

  1. 在 DPM 管理员控制台的“保护”选项卡中,单击“新建” 。From the Protection tab of the DPM Administrator Console, click New. 新建保护选项卡New Protection Tab

  2. 在“创建新保护组”向导的“选择保护组类型”页上,选择“服务器”,并单击“下一步” 。On the Select Protection Group Type page of the Create New Protection Group wizard, select Servers, and then click Next.

    选择保护组类型

  3. 在“选择组成员”屏幕上,选中要保护的 SharePoint 服务器对应的复选框,并单击“下一步” 。On the Select Group Members screen, select the check box for the SharePoint server you want to protect and click Next.

    选择组成员

    备注

    在已安装 DPM 代理的情况下,可以在向导中看到该服务器。With the DPM agent installed, you can see the server in the wizard. DPM 还会显示其结构。DPM also shows its structure. 由于已运行 ConfigureSharePoint.exe,DPM 将与 SharePoint VSS 写入器服务及其对应的 SQL Server 数据库通信,并识别 SharePoint 场结构、关联的内容数据库和任何对应项。Because you ran ConfigureSharePoint.exe, DPM communicates with the SharePoint VSS Writer service and its corresponding SQL Server databases and recognizes the SharePoint farm structure, the associated content databases, and any corresponding items.

  4. 在“选择数据保护方法”页上,输入“保护组”的名称,并选择偏好的“保护方法”。On the Select Data Protection Method page, enter the name of the Protection Group, and select your preferred protection methods. 单击“下一步”。Click Next.

    选择数据保护方法

    备注

    磁盘保护方法有助于实现短暂的恢复时间目标。The disk protection method helps to meet short recovery-time objectives. 相比于磁带,Azure 是经济高效的长期保护目标。Azure is an economical, long-term protection target compared to tapes.

  5. 在“指定短期目标”页上,选择偏好的“保留范围”,并指定备份时间。On the Specify Short-Term Goals page, select your preferred Retention range and identify when you want backups to occur.

    指定短期目标

    备注

    由于恢复大多数针对少于五天的数据进行,因此我们在此示例中选择了在磁盘上保留五天,并确保在非生产时段进行备份。Because recovery is most often required for data that's less than five days old, we selected a retention range of five days on disk and ensured that the backup happens during non-production hours, for this example.

  6. 复查为保护组分配的存储池磁盘空间,并单击“下一步” 。Review the storage pool disk space allocated for the protection group, and click then Next.

  7. 对于每个保护组,DPM 将分配磁盘空间用于存储和管理副本。For every protection group, DPM allocates disk space to store and manage replicas. 此时,DPM 必须创建选定数据的副本。At this point, DPM must create a copy of the selected data. 选择创建副本的方法和时间,并单击“下一步”。Select how and when you want the replica created, and then click Next.

    选择副本创建方法

    备注

    若要确保不会影响网络流量,请选择生产时段之外的时间。To make sure that network traffic is not effected, select a time outside production hours.

  8. DPM 可对副本执行一致性检查,以确保数据完整性。DPM ensures data integrity by performing consistency checks on the replica. 有两个可用的选项。There are two available options. 可以定义运行一致性检查的计划,或在副本变得不一致时,让 DPM 自动运行一致性检查。You can define a schedule to run consistency checks, or DPM can run consistency checks automatically on the replica whenever it becomes inconsistent. 选择用户偏好的选项,并单击“下一步” 。Select your preferred option, and then click Next.

    一致性检查

  9. 在“指定联机保护数据”页上,选择用户要保护的 SharePoint 场,并单击“下一步”。On the Specify Online Protection Data page, select the SharePoint farm that you want to protect, and then click Next.

    DPM SharePoint 保护 1

  10. 在“指定联机备份计划”页上,选择用户偏好的计划,并单击“下一步”。On the Specify Online Backup Schedule page, select your preferred schedule, and then click Next.

    Online_backup_schedule

    备注

    DPM 每天在不同的时间最多以 Azure 为目标执行两次备份。DPM provides a maximum of two daily backups to Azure at different times.

  11. 根据选择的备份计划,在“指定联机保留策略”页上,选择每日、每周、每月和每年备份点的保留策略。Depending on the backup schedule that you selected, on the Specify Online Retention Policy page, select the retention policy for daily, weekly, monthly, and yearly backup points.

    Online_retention_policy

    备注

    DPM 使用 grandfather-father-son 保留方案,可让你为不同的备份点选择不同的保留策略。DPM uses a grandfather-father-son retention scheme in which a different retention policy can be chosen for different backup points.

  12. 类似于磁盘,需要在 Azure 中创建初始引用点副本。Similar to disk, an initial reference point replica needs to be created in Azure. 选择在 Azure 中创建初始备份副本的偏好选项,并单击“下一步”。Select your preferred option to create an initial backup copy to Azure, and then click Next.

    Online_replica

  13. 在“摘要”页上复查选择的设置,并单击“创建组”。Review your selected settings on the Summary page, and then click Create Group. 创建保护组之后,你会看到成功消息。You will see a success message after the protection group has been created.

    摘要

使用 DPM 从磁盘还原 SharePoint 项Restore a SharePoint item from disk by using DPM

在以下示例中,“恢复 SharePoint 项”被意外删除,需要恢复 。In the following example, the Recovering SharePoint item has been accidentally deleted and needs to be recovered. DPM SharePoint 保护 4DPM SharePoint Protection4

  1. 打开“DPM 管理员控制台”。Open the DPM Administrator Console. DPM 保护的所有 SharePoint 场都在“保护”选项卡中显示。All SharePoint farms that are protected by DPM are shown in the Protection tab.

    DPM SharePoint 保护 3

  2. 若要开始恢复该项,请选择“恢复”选项卡 。To begin to recover the item, select the Recovery tab.

    DPM SharePoint 保护 5

  3. 可以通过在恢复点范围内执行基于通配符的搜索,在 SharePoint 中搜索“恢复 SharePoint 项” 。You can search SharePoint for Recovering SharePoint item by using a wildcard-based search within a recovery point range.

    DPM SharePoint 保护 6

  4. 从搜索结果中选择相应的恢复点,单击右键该项,并选择“恢复”。Select the appropriate recovery point from the search results, right-click the item, and then select Recover.

  5. 还可以浏览各个恢复点,并选择要恢复的数据库或项。You can also browse through various recovery points and select a database or item to recover. 选择“日期 > 恢复时间”,并选择正确的“数据库 > SharePoint 场 > 恢复点 > 项”。Select Date > Recovery time, and then select the correct Database > SharePoint farm > Recovery point > Item.

    DPM SharePoint 保护 7

  6. 右键单击该项,并选择“恢复”打开“恢复向导”。Right-click the item, and then select Recover to open the Recovery Wizard. 单击“下一步” 。Click Next.

    复查恢复选择

  7. 选择用户要执行的恢复类型,并单击“下一步” 。Select the type of recovery that you want to perform, and then click Next.

    恢复类型

    备注

    示例中所选的“恢复到原始”会将该项恢复到原始 SharePoint 站点。The selection of Recover to original in the example recovers the item to the original SharePoint site.

  8. 选择要使用的“恢复过程” 。Select the Recovery Process that you want to use.

    • 如果 SharePoint 场未更改,并且与正在还原的恢复点相同,请选择“不使用恢复场进行恢复” 。Select Recover without using a recovery farm if the SharePoint farm has not changed and is the same as the recovery point that is being restored.

    • 如果 SharePoint 场自创建恢复点后已更改,请选择“使用恢复场进行恢复” 。Select Recover using a recovery farm if the SharePoint farm has changed since the recovery point was created.

      恢复过程

  9. 提供暂时恢复数据库的暂存 SQL Server 实例位置,并在要恢复该项的 DPM 服务器和运行 SharePoint 的服务器上提供暂存文件共享。Provide a staging SQL Server instance location to recover the database temporarily, and provide a staging file share on the DPM server and the server that's running SharePoint to recover the item.

    暂存位置 1

    DPM 将托管 SharePoint 项的内容数据库附加到临时 SQL Server 实例。DPM attaches the content database that is hosting the SharePoint item to the temporary SQL Server instance. DPM 服务器从内容数据库恢复该项,并将它放在 DPM 服务器上的暂存文件位置。From the content database, the DPM server recovers the item and puts it on the staging file location on the DPM server. 现在,需要将 DPM 服务器上位于暂存位置的已恢复项导出到 SharePoint 场上的暂存位置。The recovered item that's on the staging location of the DPM server now needs to be exported to the staging location on the SharePoint farm.

    暂存位置 2

  10. 选择“指定恢复选项”,并将安全设置应用到 SharePoint 场,或应用恢复点的安全设置。Select Specify recovery options, and apply security settings to the SharePoint farm or apply the security settings of the recovery point. 单击“下一步” 。Click Next.

    恢复选项

    备注

    可以选择限制网络带宽使用率。You can choose to throttle the network bandwidth usage. 这可以在生产时段最大程度地降低对生产服务器的影响。This minimizes impact to the production server during production hours.

  11. 复查摘要信息,并单击“恢复”开始恢复文件 。Review the summary information, and then click Recover to begin recovery of the file.

    恢复摘要

  12. 现在,在“DPM 管理员控制台”中选择“监视”选项卡,查看恢复的“状态” 。Now select the Monitoring tab in the DPM Administrator Console to view the Status of the recovery.

    恢复状态

    备注

    文件现已还原。The file is now restored. 可以刷新 SharePoint 站点来检查已还原的文件。You can refresh the SharePoint site to check the restored file.

使用 DPM 从 Azure 还原 SharePoint 数据库Restore a SharePoint database from Azure by using DPM

  1. 若要恢复 SharePoint 内容数据库,请浏览各个恢复点(如上所示),并选择要还原的恢复点。To recover a SharePoint content database, browse through various recovery points (as shown previously), and select the recovery point that you want to restore.

    DPM SharePoint 保护 8

  2. 双击 SharePoint 恢复点以显示可用的 SharePoint 目录信息。Double-click the SharePoint recovery point to show the available SharePoint catalog information.

    备注

    由于 SharePoint 场在 Azure 中受长期保留保护,因此 DPM 服务器上没有可用的目录信息(元数据)。Because the SharePoint farm is protected for long-term retention in Azure, no catalog information (metadata) is available on the DPM server. 这样,每当需要恢复时间点 SharePoint 内容数据库时,都需要重新编录 SharePoint 场。As a result, whenever a point-in-time SharePoint content database needs to be recovered, you need to catalog the SharePoint farm again.

  3. 单击“重新编目” 。Click Re-catalog.

    DPM SharePoint 保护 10

    此时显示“云重新编录”状态窗口。The Cloud Recatalog status window opens.

    DPM SharePoint 保护 11

    完成编录后,状态更改为“成功” 。After cataloging is finished, the status changes to Success. 单击“关闭”。Click Close.

    DPM SharePoint 保护 12

  4. 单击 DPM“恢复”选项卡中显示的 SharePoint 对象,获取内容数据库结构 。Click the SharePoint object shown in the DPM Recovery tab to get the content database structure. 右键单击相应的项,并单击“恢复”。Right-click the item, and then click Recover.

    DPM SharePoint 保护 13

  5. 此时,请按照本文前面介绍的恢复步骤,从磁盘恢复 SharePoint 内容数据库。At this point, follow the recovery steps earlier in this article to recover a SharePoint content database from disk.

后续步骤Next steps