SharePoint 2016:性能优化和高可用(八,SharePoint 还原)

SharePoint 2016:性能优化和高可用(八,SharePoint还原)

  • 将内容还原到SHAREPOINT

在SharePoint 2016中还原内容之前,必须了解还原内容数据库和网站集的不同选项。您执行的用于恢复内容的还原操作类型取决于灾难的性质和可用的备份类型。

  • 方案1:内容数据库已损坏,损坏或丢失

当您需要从良好的备份还原整个数据库以恢复正常操作时,可以选择使用以下三种方法之一还原数据库:

使用管理中心还原数据库。

You can use Central Administration to restore the database if the database backup was made by using SharePoint tools, such as Central Administration or Windows PowerShell, and if you have the necessary permissions.

使用Windows PowerShell 还原数据库。

You can use Windows PowerShell to restore the database if the database backup was made by using SharePoint tools, such as Central Administration or Windows PowerShell, and if you have the necessary permissions.

使用SQL Server备份/还原工具还原数据库。

You can restore a content database by using SQL Server tools if the backup was created by using SQL Server backup. In this case, you should stop the Windows SharePoint Services Timer Service before restoring the databases in SQL Server, and then start the timer service after the restore is complete.

  • 方案2:内容已被删除,不再位于回收站中

在这种情况下,无论您需要还原的对象或内容的级别如何,都将使用相同的还原方法; 也就是说,您是否需要还原网站集,网站,列表,库或项目。有两种方法可以恢复回收站中不再包含的内容:

从未附加的数据库还原内容。

ou can restore the database from backup to an alternate name or alternate SQL server to avoid overwriting the current, live version of the database. After restoring the database, you can use Windows PowerShell to connect the database to SharePoint, and use Windows PowerShell cmdlets to retrieve content from the restored database. Alternatively, you can connect to the database by using Central Administration and browse the content. You can use the backup site collection option, or use the export option to retrieve the required content.

还原数据库的只读副本并将数据库附加到Web应用程序。

You might have a read-only copy of the database as part of a disaster-recovery or maintenance scenario, which might or might not use log shipping or mirroring from the main production farm. You can use Windows PowerShell to attach a read-only database to a web application. After attaching, the database will automatically change to allow read/write access.

注意:仅当您使用SQL FILESTREAM提供程序时,SharePoint 2016才会还原远程BLOB存储。如果您使用的是其他远程BLOB存储提供程序,则必须手动或使用第三方工具还原远程BLOB存储。

  • 还原服务器场组件

就像您可以备份服务应用程序和Web应用程序一样,您也可以单独还原这些服务器场组件。如果该服务应用程序的数据库损坏或损坏,或者服务配置错误,则还原组件(如Managed Metadata Service或Business Data Connectivity(BDC)服务)会很有用。

服务应用

您可以通过管理中心或使用Windows PowerShell还原服务应用程序。如果您只有基于SQL Server的备份,则无法还原整个服务应用程序,但您可以重新配置服务应用程序并使用还原的数据库。总体而言,要还原SharePoint场,您将使用Restore-SPFarm cmdlet,其中包含一系列不同的内容

-Item参数支持努力。

要使用Windows PowerShell还原服务应用程序,可以使用complimenting -Item “< ServiceApplicationName >”参数。您还应具有以下安全角色和成员身份:

  • SQL Server实例上的securityadmin角色
  • 要更新的任何数据库上的db_owner角色
  • 管理员在运行Windows PowerShell的服务器上的组成员身份

您可以使用-Item “Farm \ Shared Service Applications”参数来还原所有服务应用程序。

注意:如果使用SQL Server工具创建了搜索服务应用程序的备份,则不会包含搜索索引文件,并且您将无法从此类备份还原索引。相反,您应该还原搜索数据库,重新设置搜索服务应用程序,然后对所有可搜索内容执行完全爬网。确保您有足够的时间在恢复目标中进行完全爬网。

Web应用程序

您可以通过管理中心或使用Windows PowerShell还原Web应用程序。如果您只有基于SQL Server的备份,则无法还原整个Web应用程序,但您可以重新配置Web应用程序并使用还原的数据库。

要恢复使用Windows PowerShell Web应用程序,你可以使用恢复-SPFarm与cmdlet的-Item “< WebApplicationName >”参数。您还应具有以下安全角色和成员身份:

  • SQL Server实例上的securityadmin角色
  • 要更新的任何数据库上的db_owner角色
  • 管理员在运行Windows PowerShell的服务器上的组成员身份

如果您还原的Web应用程序使用基于声明的身份验证(这是SharePoint 2016中的默认身份验证),您可能会看到重复或其他声明提供程序(这可能通过登录页面可见)。如果出现重复项,则应手动保存每个Web应用程序区域(无需进行更改)以删除重复项。

如果还原的Web应用程序使用基于表单的身份验证,则必须在Web.config文件中重新注册成员身份和角色提供程序,然后重新部署提供程序。

场配置

您还可以选择仅还原服务器场配置信息。当灾难仅影响服务器场配置数据库但不影响其他服务器场数据库时,这非常有用。您可以使用管理中心或Windows PowerShell还原服务器场配置。要使用Windows PowerShell还原服务器场配置,您必须具有以下安全角色和成员身份:

  • SQL Server实例上的securityadmin角色
  • 要更新的任何数据库上的db_owner角色
  • 管理员在运行Windows PowerShell的服务器上的组成员身份

你可以使用恢复-SPFarm cmdlet和-ConfigurationOnly开关只恢复场配置。

  • 还原SharePoint场

通常,在灾难性故障影响整个服务器场,并且无法进行部分恢复之后,您将执行服务器场级恢复作为最后的手段。您还可以使用服务器场备份和还原功能,将SharePoint部署从一个服务器场移动到另一个服务器场。

可以使用管理中心,Windows PowerShell或SQL Server工具还原SharePoint场。使用以下过程还原服务器场:

  1. 重新安装SQL Server。
  2. 重新安装SharePoint。
  3. 运行SharePoint产品配置向导(PSConfig)以创建新服务器场。
  4. 在新创建的服务器场上还原服务器场备份。
  5. 在服务器场中的服务器上启动所需的SharePoint服务。

在SharePoint 2016中还原服务器场时,应考虑以下事项:

  • 若无法将多服务器场还原到独立服务器场,也无法将独立服务器场还原到多服务器场。
  • 若无法从一个版本的SharePoint 2016备份并还原到不同版本的SharePoint 2016。
  • 还原服务器场时,还原过程不会自动启动所有服务实例。不要使用服务器场配置向导来启动服务,因为这将重新配置服务应用程序和关联的代理。
  • 如果要跨服务器场共享服务应用程序,请注意服务器场备份不包括已交换的信任证书。还原共享服务应用程序的服务器场时,必须导入并重新部署证书,然后重新建立任何服务器场间信任。
  • 还原使用基于声明的身份验证的Web应用程序后,可能存在重复或其他声明提供程序(这可能通过登录页面可见)。如果出现重复项,则应手动保存每个Web应用程序区域(无需进行更改)以删除重复项。

猜你喜欢

转载自blog.csdn.net/jason_dct/article/details/81748043
今日推荐