在 SharePoint Server 中還原伺服器陣列設定

適用于:yes-img-132013 yes-img-16 2016yes-img-192019 yes-img-se訂閱版本 no-img-sopMicrosoft 365 中的 SharePoint

您可使用 SharePoint 管理中心網站或 Microsoft PowerShell 還原 SharePoint Server 的伺服器陣列組態。 使用的備份工具須視以下條件而定:部署的環境、備份排程需求及您與組織的服務等級協定。

開始之前

Farm-level configuration recovery is performed only after a failure that involves the configuration database but does not involve other farm data, such as a content database or Web application. If restoring the farm configuration does not solve the problems, you must restore the complete farm. For more information about how to restore the complete farm, see Restore farms in SharePoint Server. You can restore the configuration from a farm backup that used either the Backup content and configuration settings option or the Backup only configuration settings option.

注意事項

[!附註] 在舊版 SharePoint 中,無法還原設定資料庫,因此,也無法還原伺服器陣列的設定。 現在,您不必還原設定資料庫,因為您可以直接還原伺服器陣列的設定。

使用 PowerShell 還原 SharePoint 中伺服器陣列的設定

您可以使用 PowerShell 還原伺服器陣列設定。

使用 PowerShell 還原伺服器陣列設定

  1. 確認您具備下列成員身分:
  • SQL Server 執行個體上的 securityadmin 固定伺服器角色。

  • 所有要更新之資料庫上的 db_owner 固定資料庫角色。

  • 正在執行 PowerShell Cmdlet 之所在伺服器上的系統管理員群組。

    系統管理員可以使用 Add-SPShellAdmin Cmdlet 授與使用 SharePoint Server Cmdlet 的權限。

    注意事項

    [!附註] 如果您不具備上述權限,請連絡安裝程式系統管理員或 SQL Server 系統管理員要求權限。 如需 PowerShell 權限的其他資訊,請參閱 Add-SPShellAdmin

  1. 啟動 SharePoint 管理命令介面。

  2. 在 PowerShell 命令提示字元中,輸入下列命令:

    Restore-SPFarm -Directory <RestoreShare> -RestoreMethod Overwrite -ConfigurationOnly
    

    其中< RestoreShare >是儲存備份檔案的網路位置。 如需詳細資訊,請參閱<Restore-SPFarm>。

    注意事項

    [!附註] 建議您在執行命令列管理工作時使用 Windows PowerShell。 Stsadm 命令列工具已過時,但為與舊版產品相容,仍會隨附提供。

使用管理中心還原 SharePoint 的伺服器陣列設定

您可以使用管理中心還原伺服器陣列設定。

使用管理中心還原伺服器陣列設定

  1. 確認執行此程序的使用者帳戶為執行管理中心電腦的伺服器陣列管理員 SharePoint 群組成員。

  2. 驗證:選擇性地包含使用者驗證作業是否成功應執行的步驟。

    您還必須是儲存每個資料庫之資料庫伺服器上 sysadmin 固定伺服器角色的成員。

  3. In Central Administration, on the home page, in the Backup and Restore section, click Restore from a backup.

  4. 在 [從備份還原 - 步驟 3 之 1: 選取要還原的備份] 頁面上,從備份清單中選取包含伺服器陣列備份的備份工作,然後按 [下一步]。

    注意事項

    您可藉由展開包含備份的列,檢視備份的其他資訊。

    注意事項

    如果未顯示正確的備份工作,請在 [備份目錄位置] 文字方塊中輸入正確備份資料夾的 UNC 路徑,然後按一下 [重新整理]。

  5. 在 [從備份還原 - 步驟 3 之 2: 選取要還原的元件] 頁面上,選取伺服器陣列旁的核取方塊,然後按 [下一步]。

  6. 在 [從備份還原 - 步驟 3 之 3: 選取還原選項] 頁面上的 [還原元件] 區段,確認 [伺服器陣列] 出現在 [還原下列內容] 清單中。

    In the Restore Only Configuration Settings section, make sure that the Restore content and configuration settings option is selected.

    In the Restore Options section, select the Type of Restore option. Use the Same configuration setting. 隨即會出現一個對話方塊,要求您確認作業。 按一下 [確定]

    注意事項

    如果 [僅還原組態設定] 區段沒有出現,則選取的備份僅限設定備份。

    按一下 [開始還原]。

  7. You can view the general status of all recovery jobs at the top of the Backup and Restore Status page in the Readiness section. You can view the status of the current recovery job in the lower part of the page in the Restore section. The status page updates every 30 seconds automatically. You can manually update the status details by clicking Refresh. Backup and recovery are Timer service jobs. Therefore, it may take several seconds for the recovery to start.

    If you receive any errors, you can review them in the Failure Message column of the Backup and Restore Job Status page. You can also find more details in the Sprestore.log file at the UNC path that you specified in step 2.

請參閱

概念

在 SharePoint Server 中備份伺服器陣列設定