在 SharePoint Server 中準備備份及還原伺服器陣列Prepare to back up and restore farms in SharePoint Server

摘要︰了解如何準備備份及還原 SharePoint Server 2016 和 SharePoint Server 2013 伺服器陣列。Summary: Learn how to prepare to back up and restore your SharePoint Server 2016 and SharePoint Server 2013 farm.

請確保您已備份所需資料,而且在發生故障時能夠還原這些資料,這一點非常重要。在備份及還原環境之前,請考量本文資訊、程序和預防措施。本文討論備份及還原的限制與需求,以及如何在可接收備份資料的網路上建立共用資料夾。It is important to make sure that you have backed up and can recover the data that you need if a failure occurs. Consider the information, procedures, and precautions in this article before you back up and restore your environment. This article discusses restrictions and requirements for backup and recovery and how to create a shared folder on the network that can receive backed-up data.

備份及還原 SharePoint Server 的需求Requirements to back up and restore SharePoint Server

  • 在備份資料之前,請建立一個用來儲存資料的共用資料夾。為了獲得最佳效能,您應在資料伺服器上建立此資料夾。若要將備份封存至另一台伺服器,則可在備份完成後將整個備份資料夾複製到該伺服器。請確認複製並移動整個備份資料夾,而不只是此資料夾下的單一備份資料夾。Before you back up data, create a shared folder that stores the data. For best performance, create this folder on the database server. If you want to archive the backups to another server, you can copy the whole backup folder to that server after backup is complete. Be sure to copy and move the whole backup folder and not the individual backup folders under this folder.

  • 必須啟動 SQL Server VSS 編寫器服務 (隨附於 SQL Server 2008 R2 和 SQL Server 2012 資料庫軟體),SharePoint Server 2013 VSS 編寫器服務才能正常執行。根據預設,SharePoint Server 2013 VSS 編寫器服務不會自動啟動。The SQL Server VSS Writer service, which is available with SQL Server 2008 R2 and SQL Server 2012 database software, must be started for the SharePoint Server 2013 VSS Writer service to work correctly. By default, the SharePoint Server 2013 VSS Writer service is not automatically started.

    若您使用 sql-2014-1stSharePoint Server 2016 Service Pack 1 (SP1) 或 SQL Server 2016,則不適用於 SQL Server 2014,因為這兩種資料庫伺服器會自動啟動 VSS 編寫器服務。This does not apply for SharePoint Server 2016 when you use SQL Server 2014 Service Pack 1 (SP1) or SQL Server 2016 because both of these database servers automatically start the VSS Writer service.

  • 對於 SharePoint Server 2013,在執行備份之前,請確定已在伺服器陣列的所有伺服器上啟動 SharePoint Foundation 2013 管理服務。根據預設,獨立安裝中不啟動此服務。For SharePoint Server 2013, make sure that the SharePoint Foundation 2013 Administration service is started on all farm servers before you perform a backup. By default, this service is not started on stand-alone installations.

  • 請確定要執行備份的使用者帳戶能夠存取共用備份資料夾。Make sure that the user accounts that you want to perform a backup have access to the shared backup folder.

  • 如果您使用管理中心,則資料庫伺服器的 SQL 服務帳戶、計時器服務帳戶及管理中心應用程式集區識別帳戶都必須具有備份位置的 [完全控制] 權限。If you use Central Administration to back up, the database server's SQL service account, the Timer service account, and the Central Administration application pool identity account must have Full Control permissions to the backup locations.

  • 要備份的資料庫伺服器與伺服器陣列伺服器必須能夠彼此連線。The database server and farm server that you want to back up must be able to connect to one another.

  • 如果您使用 SQL Server 來搭配透明資料加密 (TDE),並使用 SharePoint 工具或 SQL Server 工具來備份您的環境,則不會備份或還原 TDE 加密金鑰。您必須手動備份該金鑰。當您還原環境時,必須先手動還原該金鑰,然後才能還原資料。如需詳細資訊,請參閱<透明資料加密 (TDE)>。If you use SQL Server with Transparent Data Encryption (TDE), and you use either SharePoint tools or SQL Server tools to back up your environment, the TDE encryption key is not backed up or restored. You must manually back up the key. When you restore the environment, you must manually restore the key before you restore the data. For more information, see Understanding Transparent Data Encryption (TDE).

備份及還原 SharePoint Server 時的限制Restrictions when you back up and restore SharePoint Server

您無法備份或還原 SharePoint 環境中的所有內容。如需備份和復原結構以及備份和還原限制的詳細資訊,請參閱<SharePoint Server 的備份與復原概觀>。You can't back up or restore everything in a SharePoint environment. For more information about backup and recovery architecture and about backup and restore restrictions, see Overview of backup and recovery in SharePoint Server.

  • 您無法使用某版本的備份而還原成其他版本。You cannot use a backup made from one version to restore to another version.

  • 您可以使用由某版本所建立的備份升級為其他版本。You can use a backup made from one version to upgrade to another version.

  • 還原的目的地伺服器陣列更新層級不能低於備份的更新層級。The update level of the farm to which you restore cannot be lower than the update level of a backup.

    目的地伺服器陣列必須具備相同或更高的更新層級。如需如何升級的資訊,請參閱<升級至 SharePoint Server 2016>。The destination farm must have the same or newer update level. For information about how to upgrade, see Upgrade to SharePoint Server 2016.

如果在建立或刪除資料庫時執行備份,擱置的變更可能不會包含在備份中。If you perform a backup while a task that creates or deletes databases is running, pending changes might not be included in the backup.

請勿修改 spbackup.xml 檔案。SharePoint Server 會使用此檔案。變更此檔案會導致備份無法使用。Do not modify the spbackup.xml file. SharePoint Server uses this file. A change can make the backups unusable.

如何建立共用資料夾How to create a shared folder

使用下列程序可在網路上建立可接收及容納備份資料的共用資料夾。還原資料時也可使用此共用資料夾。如果已有用於此目的的共用資料夾,則不必執行此程序。在執行下列程序前,應確保可從執行 SQL Server 資料庫軟體的電腦及架設 SharePoint 管理中心網站的電腦上存取共用資料夾。Use this procedure to create a shared folder on the network that can receive and hold backed up data. You can also use this shared folder when you restore data. If you already have a shared folder that serves this purpose, you do not have to perform this procedure. By performing the following procedure, you ensure that you can access the shared folder from the computer that runs SQL Server database software and from the computer that hosts the SharePoint Central Administration website.

建立共用資料夾To create a shared folder

  1. 確認執行此程序的使用者帳戶是要建立共用資料夾的電腦上管理員群組的成員。Verify that the user account that is performing this procedure is a member of the Administrators group on the computer on which you want to create the shared folder.

  2. 如果您在非執行 SQL Server 的電腦上建立共用資料夾,請確定 SQL Server (MSSQLSERVER) 的服務帳戶是使用網域使用者帳戶,且具有共用資料夾的 [完全控制] 權限。If you create the shared folder on a computer other than the one running SQL Server, make sure that the service account for SQL Server (MSSQLSERVER) is using a domain user account and that it has Full Control permissions on the shared folder.

  3. 在要儲存備份資料的伺服器上建立資料夾。On the server on which you want to store the backup data, create a folder.

  4. 在 [屬性]**** 對話方塊的 [共用]**** 索引標籤上,依序按一下 [進階共用]**** 和 [權限]*,新增下列帳戶,然後對其指派共用資料夾的「完全控制」:On the *Sharing tab of the Properties dialog box, click Advanced Sharing, and then click Permissions, add the following accounts and assign them Full Control of the shared folder:

    • SQL Server 服務帳戶 (MSSQLSERVER)SQL Server service account (MSSQLSERVER)

    • SharePoint 管理中心應用程式集區識別帳戶The SharePoint Central Administration application pool identity account

    • SharePoint 計時器服務帳戶。The SharePoint Timer service account.

另請參閱See also

概念Concepts

SharePoint Server 的備份解決方案Backup solutions in SharePoint Server

SharePoint Server 的還原解決方案Restore solutions in SharePoint Server