SharePoint Server 的備份與復原概觀Overview of backup and recovery in SharePoint Server

摘要:在您規劃與還原 SharePoint Server 2016 和 SharePoint 2013 之前先了解備份及復原情境、備份架構及復原程序。Summary: Know backup and recovery scenarios, backup architecture, and recovery processes before you plan to back up and restore SharePoint Server 2016 and SharePoint 2013.

SharePoint Server 備份架構及復原程序包含陣列備份及復原、細微備份及復原,以及從未附加內容資料庫進行復原。您可以使用 SharePoint 管理中心網站或 PowerShell Cmdlet 來完成備份及復原作業。請注意,一些內建備份及復原工具可能無法符合貴組織的所有需求。The SharePoint Server backup architecture and recovery processes include farm backup and recovery, granular backup and recovery, and recovery from an unattached content database. You can complete backup and recovery operations by using the SharePoint Central Administration website or PowerShell cmdlets. Note that some built-in backup and recovery tools may not meet all the requirements of your organization.

SharePoint 備份及復原案例SharePoint backup and recovery scenarios

備份及復原資料支援許多商務案例,包括:Backing up and recovering data supports many business scenarios, including the following:

  • 復原無意中刪除的內容,這些內容不受資源回收筒或版本設定保護。Recovering unintentionally deleted content that is not protected by the recycle bin or versioning.

  • 在安裝之間移動資料,作為硬體或軟體升級的一部分。Moving data between installations as part of a hardware or software upgrade.

  • 從非預期的失敗復原。Recovering from an unexpected failure.

在 SharePoint Server 中備份架構Backup architecture in SharePoint Server

SharePoint Server 提供兩個備份系統:伺服器陣列與細微。SharePoint Server provides two backup systems: farm and granular.

SharePoint Server 2016 中的伺服器陣列備份架構Farm backup architecture in SharePoint Server 2016

SharePoint Server 的伺服器陣列備份架構會先啟動內容與服務應用程式資料庫的 SQL Server 備份,然後將設定內容寫入檔案,同時備份搜尋索引檔案,以及將這些檔案與搜尋資料庫的備份進行同步處理。The farm backup architecture in SharePoint Server starts a SQL Server backup of content and service application databases, writes configuration content to files, and also backs up the Search index files and synchronizes them with the Search database backups.

下圖說明伺服器陣列備份系統。The following illustration shows the farm backup system.

伺服器陣列的 SharePoint 備份系統SharePoint backup system for a farm

備份架構 (SharePoint Foundation)

架構支援完整和差異備份。「完整」備份會建立完整系統的新備份。「差異」會針對自上次完整備份以來,建立存在於資料庫中所有變更的備份。The architecture supports both full and differential backups. Full backups create a new backup of the complete system. Differential backups create a backup of all changes that are stored in databases since the last full backup.

伺服器陣列備份系統會以階層方式組織。伺服器陣列中可以選擇進行備份的元件包括:The farm backup system is organized hierarchically. The components in a farm that you can select for backup include the following:

  • 伺服器陣列 伺服器陣列是最高層級的物件。當您執行伺服器陣列備份時,可以選取下列選項:Farm The farm is the highest-level object. You can select from the following options when you perform a farm backup:

    • 內容與設定資料 (預設值)Content and configuration data (default)

      會備份整個伺服器陣列,包括設定資料庫的設定。The whole server farm is backed up. This includes settings from the configuration database.

    • 僅限設定Configuration-only

      備份設定資料庫設定,讓您可以將設定套用於不同的伺服器陣列。如需詳細資訊,請參閱本文稍後的僅限設定備份的用途與優點Configuration database settings are backed up so that you can apply configurations across farms. For more information, see Configuration-only backup use and benefits later in this article.

  • Web 應用程式 在 Web 應用程式中,您可以選取一或多個內容資料庫進行備份。Web application Within a web application, you can select one or more of the content databases to back up.

    Web 應用程式備份包括:A web application backup includes the following:

    • 應用程式集區名稱及應用程式集區帳戶Application pool name and application pool account

    • 驗證設定Authentication settings

    • 一般 Web 應用程式設定,例如提醒與管理路徑General web application settings such as alerts and managed paths

    • Internet Information Services (IIS) 繫結資訊,例如通訊協定類型、主機標頭及連接埠號碼Internet Information Services (IIS) binding information, such as the protocol type, host header and port number

    • 透過物件模型或管理中心對 Web.config 檔案的變更Changes to the Web.config file that were made through the object model or Central Administration

      注意

      對於支援使用表單型驗證之宣告式應用程式的 Web.config 檔案變更因為是手動執行,因此不會包含在備份中。如需詳細資訊,請參閱本文稍後的<使用伺服器陣列備份的考量>。Changes to the Web.config file that were made to support claims-based applications that use forms-based authentication are not included in backups, because those changes are made manually. For more information, see Considerations for using farm backups later in this article.

    • 沙箱化解決方案Sandboxed solutions

      如需如何保護這些設定的建議,請參閱<在 SharePoint Server 中規劃備份和修復>。For recommendations about how to protect these settings, see Plan for backup and recovery in SharePoint Server.

  • 服務及服務應用程式 (未共用) State Service 即是未共用服務的範例。服務及服務應用程式備份包含服務或服務應用程式的設定,以及任何與其相關聯的資料庫。Services and service applications (not shared) An example of a service that is not shared is the State Service. Service and service application backups contain the settings for a service or service application and any databases associated with it.

    重要

    備份服務應用程式不包括相關的 Proxy。若要同時備份服務與 Proxy,您必須備份伺服器陣列,或是執行兩次連續備份、在一個備份中選取服務應用程式,然後在第二個備份中選取關聯的服務應用程式 Proxy。Backups of service applications do not include the related proxy. To back up both the service application and the service application proxy, you must either back up the farm or perform two consecutive backups. You select the service application in one backup, and you select the associated service application proxy in the second backup.

    許多服務應用程式資料庫無法個別從 SharePoint Server 進行備份。若只要備份服務應用程式資料庫,必須使用 SQL Server 備份。Many service application databases cannot be backed up individually from SharePoint Server. To back up service application databases only, you must use SQL Server backup.

  • 未共用服務應用程式的 ProxyProxies for service applications that are not shared

  • 共用服務 共用服務需要一併執行服務應用程式與服務應用程式 Proxy。若您選取 [共用服務] 節點,將會備份伺服器陣列上的所有服務應用程式與相關的服務應用程式 Proxy。Shared Services Shared services require both a service application and a service application proxy to run. Select the Shared Services node to back up all of the service applications and the related service application proxies on the farm.

    注意

    備份階層可讓您選取要備份的個別服務應用程式及服務應用程式 Proxy。但若選取一個或所有服務應用程式,或一個或所有 Proxy,則依預設不會備份相關物件。The backup hierarchy enables you to select individual service applications and service application proxies to back up. However, when you select one or all service applications, or one or all proxies, the related objects are not backed up by default.

請注意,SharePoint Server 環境中的某些設定不會包含在伺服器陣列備份中。其中包含儲存在網頁伺服器上的下列設定:Note that some settings in the SharePoint Server environment are not included in a farm backup. They include the following settings that are stored on web servers:

  • 應用程式集區帳戶密碼Application pool account passwords

  • HTTP 壓縮設定HTTP compression settings

  • 逾時設定Time-out settings

  • 自訂網際網路伺服器應用程式開發介面 (ISAPI) 篩選Custom Internet Server Application Programming Interface (ISAPI) filters

  • 電腦網域成員資格Computer domain membership

  • 網際網路通訊協定安全性 (IPsec) 設定Internet Protocol security (IPsec) settings

  • 網路負載平衡設定Network Load Balancing settings

  • 安全通訊端階層 (SSL) 憑證Secure Sockets Layer (SSL) certificates

  • 固定 IP 位址設定Dedicated IP address settings

Search Service 應用程式備份程序Search service application backup process

備份與復原 Search Service 應用程式是特殊案例,因為應用程式元件之間互動的複雜性。Back up and recovery of the Search service application is a special case because of the complexity of interactions between the components of the application.

開始備份 Search Service 應用程式後,SharePoint Server 會開始備份包含搜尋管理資料庫、編目資料庫與屬性資料庫的 SQL Server 備份。此程序同時也會備份索引分割區檔案。When you start a backup of the Search service application, SharePoint Server starts a SQL Server backup of the Search administration database, crawl databases, and property databases. The process also backs up the index partition files in parallel.

考量 Search Service 應用程式備份與還原程序對於服務等級協定的影響程度。例如,考量將所有編目暫停可能會對搜尋結果的新鮮度有何影響。Consider how the backup and recovery processes for the Search service application affect your service-level agreement. For example, consider how pausing all crawls might affect the freshness of search results.

備份程序如下:The backup process is as follows:

  1. 暫停主要合併以保留主要索引。Master merges are paused to preserve the master index.

  2. 開始完整資料庫備份。A full database backup starts.

  3. 備份主要索引。The master index is backed up.

  4. 暫停編目。Crawls are paused.

    暫停編目的時間遠比備份舊版 SharePoint 搜尋的時間短,且不會持續整個備份程序。The pause in crawling is much shorter than during a backup of earlier versions of SharePoint search, and does not last the full duration of the backup process.

  5. 備份所有陰影索引。All shadow indexes are backed up.

  6. 開始增量資料庫備份。An incremental database backup starts.

  7. 繼續編目。Crawls are resumed.

  8. 繼續主要合併。Master merges are resumed.

僅限設定備份的用途與優點Configuration-only backup use and benefits

「僅限設定備份」會從設定資料庫擷取組態設定加以備份。無論設定資料庫目前是否附加至伺服器陣列,您都可以使用內建工具備份任何設定資料庫的設定。如需如何備份設定的詳細資訊,請參閱<在 SharePoint Server 中備份伺服器陣列設定>。A configuration-only backup extracts and backs up the configuration settings from a configuration database. You can use built-in tools to back up the configuration of any configuration database, whether it is currently attached to a farm or not. For detailed information about how to back up a configuration, see Back up farm configurations in SharePoint Server.

您可以將設定備份還原至相同伺服器陣列或其他伺服器陣列。還原設定時,如果那些設定的值位於設定備份中,您就可以覆寫陣列中的設定。不在設定備份中的陣列設定將不會遭到變更。如需如何還原陣列設定的詳細資訊,請參閱<在 SharePoint Server 中還原伺服器陣列設定>。You can be restore a configuration backup to the same or another server farm. When you restore a configuration, you overwrite settings in the farm if values for those settings are in the configuration backup. Settings in the farm that are not in the configuration backup are not changed. For detailed information about how to restore a farm configuration, see Restore farm configurations in SharePoint Server.

注意

Web 應用程式與服務應用程式設定不會包含在設定備份中。您可以使用 PowerShell Cmdlet 記錄及複製服務應用程式的設定。如需詳細資訊,請參閱<記錄 SharePoint Server 的伺服器陣列組態設定>及<在 SharePoint Server 的伺服器陣列之間複製組態設定>。Web application and service application settings are not included in a configuration backup. You can use PowerShell cmdlets to document and copy settings for service applications. For more information, see Document farm configuration settings in SharePoint Server and Copy configuration settings between farms in SharePoint Server.

下列情況下,您可能需要跨伺服器陣列還原設定:Situations in which you might want to restore a configuration from one farm to another farm include the following:

  • 複製要在整個環境中使用的標準化伺服器陣列設定。Replicating a standardized farm configuration to be used throughout an environment.

  • 將設定從開發或測試環境移至實際執行環境。Moving configurations from a development or test environment to a production environment.

  • 將設定從獨立安裝移至伺服器陣列環境。Moving configurations from a stand-alone installation to a farm environment.

  • 將伺服器陣列設定為待命環境的一部分。Configuring a farm to serve as part of a standby environment.

SharePoint Server 會將下列類型的設定儲存在僅限設定的備份中:SharePoint Server stores the following kinds of settings in the configuration-only backup:

  • 防毒Antivirus

  • 資訊版權管理 (IRM)Information rights management (IRM)

  • 外送電子郵件設定 (僅在執行覆寫時才會還原)。Outbound email settings (only restored when you perform an overwrite).

  • 將自訂部署為信任的解決方案Customizations deployed as trusted solutions

  • 診斷記錄Diagnostic logging

使用伺服器陣列備份的考量Considerations for using farm backups

使用伺服器陣列備份之前,請注意下列事項:Consider the following before you use farm backups:

  • 備份不具內建的排程系統。若要排程備份,建議先使用 PowerShell 建立備份指令碼,然後再使用 Windows 工作排程器服務以定期執行備份指令碼。There is no built-in scheduling system for backups. To schedule a backup, we recommend that you use PowerShell to create a backup script, and then use Windows Task Scheduler to run the backup script regularly.

  • 建議您不要使用 IIS 備份保護IIS 設定,而使用可以提供所需設定監視功能的工具 (如 System Center Configuration Manager) ,記錄每部網頁伺服器的所有 IIS 設定。We do not recommend that you use IIS metabase backup to protect IIS settings. Instead, document all IIS configurations for each web server by using a tool that provides the configuration monitoring you want, such as System Center Configuration Manager.

  • SharePoint Server 的備份及復原可以搭配 SQL Server Enterprise 功能 (如備份壓縮及透明資料加密) 一起執行。SharePoint Server backup and recovery can be run together with SQL Server Enterprise features such as backup compression and transparent data encryption.

    如果執行的是 SQL Server Enterprise,建議您使用備份壓縮。如需備份壓縮的詳細資訊,請參閱<備份壓縮 (SQL Server)>。If you are running SQL Server Enterprise, we recommend that you use backup compression. For more information about backup compression, see Backup Compression (SQL Server).

    若決定使用透明資料加密來執行資料庫,就必須手動備份和還原金鑰。SharePoint Server 的備份及還原不會提示您金鑰的相關事宜。如需透明資料加密的詳細資訊,請參閱<透明資料加密 (TDE)>。If you decide to run databases with transparent data encryption, you must manually back up the key and restore the key. SharePoint Server backup and restore will not remind you about the key. For more information about transparent data encryption, see Transparent Data Encryption (TDE).

  • 若內容資料庫設定為使用 SQL FILESTREAM 遠端 BLOB 儲存 (RBS) 提供者,必須同時在所要備份的資料庫伺服器,以及要復原備份之資料庫的資料庫伺服器上安裝該 RBS 提供者。If a content database is set to use the SQL FILESTREAM remote BLOB storage (RBS) provider, the RBS provider must be installed both on the database server that is being backed up and on the database server to which you recover the backup.

  • SharePoint Server 備份不會保護:SharePoint Server backup does not protect:

    • 不透過 管理中心 或物件模型變更網頁伺服器上的 Web.config 檔案。Changes to the Web.config file on web servers that are not made through Central Administration or the object model.

    • 未部署在信任或沙箱化解決方案中的網站自訂。Customizations to a site that are not deployed as part of a trusted or sandboxed solution.

  • 如果跨伺服器陣列共用服務應用程式,請注意伺服器陣列備份中不會包含已交換的信任憑證。您必須分開備份憑證存放區,或將憑證存放在不同的位置。當您還原共用服務應用程式的伺服器陣列時,您必須匯入並重新部署憑證,然後重新建立伺服器陣列之間的任何信任。If you share service applications across farms, be aware that trust certificates that have been exchanged are not included in farm backups. You must back up the certificate store separately or keep the certificates in a separate location. When you restore a farm that shares a service application, you must import and redeploy the certificates and then establish any inter-farm trusts again.

    如需詳細資訊,請參閱<在 SharePoint Server 中交換伺服器陣列之間的信任憑證>。For more information, see Exchange trust certificates between farms in SharePoint Server.

  • 當您還原設定為使用任何宣告式驗證類型的伺服器陣列或 Web 應用程式時,可能會允許重複的提供者或其他提供者。如果出現重複的提供者,您必須手動儲存每個 Web 應用程式區域,以移除這些提供者。When you restore a farm or Web application that is configured to use any kind of claims-based authentication, duplicate or additional providers may appear to be enabled. If duplicates appear, you must manually save each web application zone to remove them.

  • 如果您還原的伺服器陣列包含設定為使用表單型驗證的 Web 應用程式,則必須進行其他步驟。您必須重新註冊 Web.config 檔案中的成員資格及角色提供者,然後重新部署提供者。不論您在 Web 應用程式層級或伺服器陣列層級進行還原,皆必須執行這些步驟。Additional steps are required when you restore a farm that contains a web application that is configured to use forms-based authentication. You must register the membership and role providers again in the Web.config file, and then deploy the providers again. You must perform these steps whether you are restoring at the web application level or at the farm level.

    如需詳細資訊,請參閱<在 SharePoint Server 中備份 Web 應用程式>與<在 SharePoint Server 中規劃使用者驗證方法>。For more information, see Back up web applications in SharePoint Server, and Plan for user authentication methods in SharePoint Server.

細微備份及匯出架構Granular backup and export architecture

細微備份及匯出架構使用 Transact-SQL 查詢並匯出呼叫。細微備份及匯出與伺服器陣列備份相較下,是比較讀取密集與處理密集之作業。The granular backup and export architecture uses Transact-SQL queries and export calls. Granular backup and export is a more read-intensive and processing-intensive operation than farm backup.

您可利用細微備份系統備份網站集合,或匯出網站或清單。From the granular backup system, you can back up a site collection or export a site or list.

注意

匯出網站或清單時並不包含工作流程。Workflows are not included in exports of sites or lists.

如果您執行的是 SQL Server Enterprise,細微備份系統可以選擇是否要使用 SQL Server 資料庫快照集,在備份或匯出進行中的同時,確保資料仍然保持一致。建立快照集後,SharePoint Server 會使用該快照集來建立備份或匯出套件,然後再刪除快照集。資料庫快照集會連結至來源資料庫。來源資料庫離線時,快照便無法使用。如需資料庫快照集的詳細資訊,請參閱<資料庫快照集>。If you are running SQL Server Enterprise, the granular backup system can optionally use SQL Server database snapshots to make sure that data remains consistent while the backup or export is in progress. After you create a snapshot, SharePoint Server uses it to create the backup or export package, and then deletes the snapshot. Database snapshots are linked to the source database. When the source database is offline, the snapshot is unavailable. For more information about database snapshots, see Database Snapshots.

使用快照備份網站集合的優點包括:Benefits of backing up a site collection by using a snapshot include the following:

  • 快照可以確保操作期間,所讀取之資料的一致性。The snapshot makes sure that the data that is being read remains consistent while the operation is being performed.

  • 當網站集合從資料庫快照集進行備份時,使用者仍可繼續與其進行互動,包括新增、編輯及刪除內容等等。但由於備份的對象是資料庫快照集,因此,網站集合備份將不會包含使用者於備份期間所進行的變更。Users can continue to interact with the site collection while it is being backed up from the database snapshot. This includes adding, editing, and deleting content. However, the changes that users make to the live site will not be included in the site collection backup because the backup is based on the database snapshot.

但資料庫快照集對效能可能會有負面的影響。However, database snapshots can adversely affect performance.

對於儲存在設定為使用 SQL FILESTREAM RBS 提供者之資料庫的內容,您可以使用細微備份及匯出。You can use granular backup and export for content that is stored in a database that is configured to use the SQL FILESTREAM RBS provider.

注意

如果您所用的 RBS 提供者不支援快照集,您就無法在內容部署或備份時使用快照集。例如,SQL FILESTREAM 提供者並不支援快照集。If the RBS provider that you use does not support snapshots, you cannot use snapshots for content deployment or backup. For example, the SQL FILESTREAM provider does not support snapshots.

注意

建議您不要使用 SharePoint Server 網站集合備份功能來備份大於 85 GB 的網站集合。We do not recommend that you use SharePoint Server site collection backup for site collections larger than 85 GB.

下圖是細微備份及匯出系統。The following illustration shows the granular backup and export system.

網站集合備份Site collection backup

詳細的備份/匯出程序

SharePoint Server 中的復原程序Recovery processes in SharePoint Server

SharePoint Server 支援下列主要的內建復原選項:SharePoint Server supports the following primary, built-in recovery options:

  • 使用內建工具,從建立的陣列備份進行還原。Restore from a farm backup that was created by using built-in tools.

  • 使用伺服器陣列備份系統,從建立的元件備份進行還原。Restore from the backup of a component taken by using the farm backup system.

  • 從網站集合備份還原。Restore from a site collection backup.

  • 使用未附加的內容資料庫功能連線至內容資料庫,接著備份或匯出其中的資料,然後還原或匯入資料。Connect to a content database by using the unattached content database feature, back up or export data from it, and then restore or import the data.

從伺服器陣列備份還原Restoring from a farm backup

可從伺服器陣列備份復原的項目包括:Items that can be recovered from a farm backup include the following:

  • 伺服器陣列Farm

    • 內容與設定資料 (預設值)Content and configuration data (default)

      會還原整個伺服器陣列。The whole server farm is restored.

      這包含來自設定資料庫和受信任解決方案套件的設定。This includes settings from the configuration database, and trusted solution packages.

    • 僅限設定Configuration-only

      只還原設定資料。這會覆寫伺服器陣列中,任何僅限設定備份中所包含的設定值。Only the configuration data is restored. This overwrites any settings in the farm that have values that are set within the configuration-only backup.

  • Web 應用程式Web applications

    還原 Web 應用程式。Restores web applications.

  • 服務應用程式Service applications

    還原服務應用程式。復原服務應用程式可能很複雜,因為 SharePoint Server 無法在復原程序時間完整重新設定服務應用程式 Proxy。雖然會還原服務應用程式 Proxy,但不會放置在 Proxy 群組中,因此它們不會與任何 Web 應用程式關聯。如需如何還原 Search Service 應用程式的詳細資訊,請參閱<Search Service 應用程式復原程序>。如需還原特定服務應用程式涉及之作業的特定資訊,請參閱<在 SharePoint Server 中還原服務應用程式>。Restores service applications. Service application recovery can be complex because SharePoint Server cannot fully reconfigure service application proxies during the restore process. Although service application proxies are restored, they are not put in proxy groups. Therefore, service application proxies are not associated with any web applications. For more information about how to restore a Search service application, see Search service application recovery process. For specific information about how to restore specific service applications, see Restore service applications in SharePoint Server.

  • 內容資料庫Content databases

    還原內容資料庫時,會一併還原網站集合相關聯的沙箱化解決方案。When content databases are restored, the sandboxed solutions associated with the related site collections are also restored.

還原為新執行個體與以覆寫方式還原的比較Restoring as new versus restoring as overwrite

SharePoint Server 復原預設會將所有物件都還原為物件的新執行個體,而不是覆寫任何同名的現有執行個體。By default, SharePoint Server recovery restores all objects as new instances of the object, instead of overwriting existing instances with the same name.

當您將伺服器陣列或物件還原為新執行個體時,因為所有物件的 GUID 都已指派新的值,所以下列物件在未調整的情況下將無法運作。When you restore a farm or object as new, the following objects will not work without adjustments, because all GUIDs for objects are assigned new values:

  • 陣列。Farm.

    將陣列還原為新陣列時,您必須執行下列作業:When you restore a farm as new, you must do the following:

    • 重新建立備用存取對應設定。SharePoint Server 復原只會還原 Web 應用程式的「預設」區域。Recreate alternate access mapping settings. SharePoint Server recovery only restores the Default zone of the web application.

    • 重新設定任何 Business Data Connectivity 與 Managed Metadata Service 應用程式外部來源的設定。Reconfigure settings for any Business Data Connectivity and Managed Metadata service application external sources.

    • 請重新建立服務應用程式 Proxy 與 Proxy 群組的關聯,因為還原時不會將服務應用程式 Proxy 指派給 Proxy 群組。所有 Web 應用程式都會與預設 Proxy 群組相關聯。您必須視需要建立 Web 應用程式與其他 Proxy 群組的關聯。Associate service application proxies with proxy groups again because service application proxies are not assigned to proxy groups when restored. All web applications will be associated with the default proxy group. You must associate web applications with other proxy groups if you want to do that.

  • Web 應用程式Web application

    • 如果您提供的 Web 應用程式名稱及 URL 與陣列中現有 Web 應用程式的名稱及 URL 相符,SharePoint Server 復原便會將之結合。If the name and URL of a web application that you provide match the name and URL an existing web application in the farm, SharePoint Server recovery combines them.

    • 如果您不想結合 Web 應用程式,則必須在將之還原為新應用程式時,重新命名 Web 應用程式。If you do not want to combine web applications, you must rename the web application when you restore it as new.

    • 如果在相同環境中將 Web 應用程式還原為新的執行個體,但未合併 Web 應用程式,則也需要一併變更多個其他參數及物件。例如,您可能必須提供不同的資料庫檔案路徑及不同的資料庫名稱。When you restore a web application as new in the same environment but do not combine web applications, many other parameters and objects must also be changed. For example, you may have to provide different database file paths and different database names.

  • 服務應用程式及服務應用程式 ProxyService applications and service application proxies

    • 如果您復原服務應用程式,同時也復原相關的服務應用程式 Proxy,則必須建立該服務應用程式 Proxy 與 Proxy 群組的關聯。If you recover a service application and also recover the related service application proxy, you must associate the service application proxy with a proxy group.

    • 如果您復原服務應用程式,但未復原相關的服務應用程式 Proxy,則必須重新建立服務應用程式 Proxy。If you recover a service application and do not also recover the related service application proxy, you must recreate the service application proxy.

      注意

      您不可以在相同的伺服器陣列中將服務應用程式還原為新執行個體,但可以在另一個伺服器陣列中將服務應用程式還原為新執行個體。You cannot restore a service application as new in the same farm. You can restore a service application as new in another farm.

當您還原某個物件並覆寫現有的物件時,無需進行任何變更。When you restore an object and overwrite the existing object, no changes are necessary.

Search Service 應用程式復原程序Search service application recovery process

Search Service 應用程式的復原程序,會依據您是還原成新項目或以覆寫方式還原而不同。當您以覆寫方式還原時,無需執行其他步驟。The recovery process for the Search service application varies depending on whether you are restoring as new or restoring as overwrite. When you restore as overwrite, no additional steps are necessary.

還原成新項目的程序如下:The restore as new process is as follows:

  1. 將服務應用程式還原成新項目,然後在還原時指定新的伺服器陣列拓撲資訊。Restore the service application as new, and specify the new farm topology information as you restore.

  2. 將服務應用程式 Proxy 還原成新項目。若未還原服務應用程式 Proxy,您必須建立新的服務應用程式 Proxy,然後將它與 Search Service 應用程式關聯。Restore the service application proxy as new. If you did not restore the service application proxy, you must create a new service application proxy and associate it with the Search service application.

  3. 將服務應用程式 Proxy 與適當的 Proxy 群組關聯,並將 Proxy 群組 (若非預設的 Proxy 群組) 與適當的 Web 應用程式關聯。Associate the service application proxy with the appropriate proxy group and associate the proxy group (if it is not the default proxy group) with the appropriate Web application.

  4. 若是最低權限的部署,請以適當的帳戶啟動 Search Service 與搜尋管理查詢 Web 服務。For least-privilege deployments, start the Search service and the Search admin query Web service with the appropriate account.

如需如何復原 Search Service 應用程式的詳細資訊,請參閱<在 SharePoint Server 中還原搜尋服務應用程式>。For more information about how to recover the Search service application, see Restore Search service applications in SharePoint Server.

從網站集合備份還原Restoring from a site collection backup

僅可從網站集合備份復原網站集合。Only site collections can be recovered from a site collection backup.

從未附加的內容資料庫復原Recovering from an unattached content database

未附加內容資料庫是附加至 SQL Server 的執行個體,但是與 Web 應用程式沒有關聯。 SharePoint Server 可連接至未附加資料庫和從該處進行備份。例如,SharePoint Server 可連接至從任何支援備份技術還原的唯讀內容資料庫和內容資料庫的 SQL Server 資料庫快照。An unattached content database is a database that is attached to an instance of SQL Server but is not associated with a web application. SharePoint Server can connect to and back up from an unattached database. For example, SharePoint Server can connect to read-only content databases that were restored from any supported backup technology and SQL Server database snapshots of content databases.

復原是兩階段的程序:Recovery is the following two-stage process:

  1. 從未附加的內容資料庫備份或匯出物件。Back up or export the object from the unattached content database.

  2. 將上一個步驟的輸出還原到或匯入 SharePoint Server。Restore or import the output of the prior step to SharePoint Server.

您可以使用細微備份與匯出,從未附加的資料庫備份或匯出下列項目,然後再予以還原。The following items can be backed up or exported from an unattached database by using granular backup and export, and then restored:

  • 網站集合Site collection

    使用網站集合備份進行備份,然後再使用網站集合還原進行復原。Back up by using site collection backup, and then recover by using a site collection restore.

  • 網站Site

    先匯出,然後再匯入。Export, and then import.

  • 清單與文件庫Lists and libraries

    先匯出,然後再匯入。Export, and then import.

您可以使用匯入功能還原從設定要使用 SQL FILESTREAM RBS 提供者之資料庫所備份的內容。SharePoint Server 會利用內容資料庫目前所定義的儲存提供者;亦即,若內容資料庫未設定為使用 RBS,資料將會儲存在內容資料庫,若內容資料庫設定為使用 RBS,則資料將會儲存在 RBS。You can use import to recover content that you backed up from a database that is configured to use the SQL FILESTREAM RBS provider. SharePoint Server uses the currently defined storage provider for that content database to store recovered content. If the content database is not set to use RBS, the data will be stored in the content database; if the content database is set to use RBS, the data will be stored in RBS.

另請參閱See also

概念Concepts

在 SharePoint Server 中規劃備份和修復Plan for backup and recovery in SharePoint Server