APPLIES TO: yes-img-132013 yes-img-162016 yes-img-192019 yes-img-seSubscription Edition no-img-sopSharePoint in Microsoft 365

You can restore SharePoint Server search past using the SharePoint Cardinal Administration website, Microsoft PowerShell, or SQL Server tools. The restore tool that you utilize depends on the kind of surround that you lot have deployed, your schedule requirements, and service level agreements that you have made with your organization.

Before you lot begin

There are situations in which you might have to restore a specific service application instead of restoring the complete subcontract. Some service applications — for instance, the SharePoint Search service awarding, Business Information Connectivity service application, and the User Profile Service service application — provide data to other services and sites. Every bit a result, users might feel some service interruption until the recovery process is completed.

Before yous begin this performance, review the following information:

  • Backing up and restoring search does non bear on the state of the farm. However, it does crave resources. Therefore, backup and restore for search might impact farm performance while the backup is running. Y'all tin can avoid performance issues past backing up search during hours when farm use is lowest.

  • You cannot restore the consummate service application by using SQL Server tools. However, y'all can restore the databases that are associated with the service application.

Restore a thesaurus file

Thesaurus files are used to specify synonyms for words or phrases that occur in search queries. You create and maintain the thesaurus files in systems external to SharePoint Server before you import them into SharePoint Server to brand them available to the search organisation. The thesaurus files are therefore non included in the default SharePoint Server search backup procedures, and likewise not in the search recovery procedures outlined below.

To restore a thesaurus file

  1. Follow one of the procedures below to restore the SharePoint Server Search service application.

  2. If necessary, restore the thesaurus file using the restore procedures for the external system you are using to create and maintain thesaurus files.

  3. Import the thesaurus file to the SharePoint Server search system by using the Import-SPEnterpriseSearchThesaurus PowerShell cmdlet as described in Deploy a thesaurus.

You tin use PowerShell to restore a service application.

To restore a Search service awarding by using PowerShell

  1. Verify that you have the following memberships:

    • securityadmin fixed server role on the SQL Server case.

    • db_owner stock-still database office on all databases that are to be updated.

    • Administrators group on the server on which y'all are running the PowerShell cmdlets.

    • Farm Administrators SharePoint grouping.

    An administrator can utilize the Add-SPShellAdmin cmdlet to grant permissions to use SharePoint Server cmdlets.

    Notation

    If you do not have permissions, contact your Setup ambassador or SQL Server administrator to asking permissions. For additional data about PowerShell permissions, see Add together-SPShellAdmin.

  2. Make sure that the server yous are restoring to use the same drive mapping as the server where you lot created the fill-in.

  3. Start the SharePoint Management Trounce.

  4. At the PowerShell control prompt, type the following command:

                      Restore-SPFarm -Directory <BackupFolder> -Particular "<ServiceApplicationName>" -RestoreMethod Overwrite [-BackupId <GUID>] [-Verbose]                                  

    Where:

    • <BackupFolder> is the path for the backup folder where the service application was backed upwardly.

    • <ServiceApplicationName> is the name the service awarding.

    • _<GUID>_is the ID of the backup to use.

    To specify which fill-in to use, employ the BackupId parameter. You can view the backups for the subcontract by typing the following: Become-SPBackupHistory -Directory <BackupFolder> -ShowBackup. If you do not specify the BackupId, the most recent backup volition be used. You cannot restore a service application from a configuration-just fill-in.

    To restore all the service applications, at the PowerShell command prompt, type the following command:

                      Restore-SPFarm -Directory <BackupFolder> -Item "Farm\Shared Service Applications" -RestoreMethod Overwrite [-BackupId <GUID>] [-Verbose]                                  

    Where:

    • <BackupFolder> is the path for the backup folder where the service application was backed up.

    • _<GUID>_is the ID of the fill-in to use.

    For more information, see Restore-SPFarm.

  5. When you restore a Search service awarding, it is automatically paused. To resume the Search service application when the restore has completed, blazon the following command:

                      $ssa = Get-SPEnterpriseSearchServiceApplication <SearchServiceApplicationName>$ssa.ForceResume(0x02)                                  

    Where:

    • <SearchServiceApplicationName> is the name the service awarding yous desire to resume.

Note

Alphabetize files are restored to one replica per alphabetize division. Subsequently the restore has completed, the index for each replica is replicated to the other index replicas. During this procedure the search topology is fully functional for itch and queries, but is not mistake tolerant.

Depending on the size of the farm and the index, the procedure can have several hours and the index replicas announced equally degraded in the Search Administration UI and in the output of the Get-SPEnterpriseSearchStatus Microsoft PowerShell cmdlet.

Note

We recommend that y'all utilize Microsoft PowerShell when performing control-line administrative tasks. The Stsadm control-line tool has been deprecated, but is included to back up compatibility with previous production versions.

Use the following procedure to restore a search service application by using the SharePoint Central Assistants website.

To restore a Search service application by using Central Assistants

  1. Verify that the user business relationship that is performing this process is a fellow member of the Farm Administrators SharePoint group.

  2. Make sure that the server you are restoring to utilize the same bulldoze mapping as the server where yous created the fill-in.

  3. Start Central Assistants.

  4. In Key Assistants, on the home folio, in the Backup and Restore section, click Restore from a backup.

  5. On the Restore from Backup — Step ane of 3: Select Backup to Restore folio, select the backup job that contains the service application backup, or a farm-level fill-in, from the list of backups, and and then click Side by side. You can view more than details about each backup by clicking the (+) next to the backup.

    Note

    If the correct backup job does not appear, in the Backup Directory Location text box, type the path of the correct fill-in folder, and then click Refresh. > Yous cannot use a configuration-only backup to restore the farm.

  6. On the Restore from Fill-in — Step ii of 3: Select Component to Restore page, expand Shared Services Applications, select the check box that is next to the Search service application, and and so click Next. To restore all the service applications, select the Shared Services Applications node.

  7. On the Restore from Backup — Step 3 of three: Select Restore Options folio, in the Restore Component section, make certain that Farm\Shared Services Applications\<Service application> appears in the Restore the post-obit component list.

    In the Restore Options department, under Type of restore, select the Same configuration option. A dialog will appear that asks you to confirm the operation. Click OK.

    Click Offset Restore.

  8. You can view the full general status of all recovery jobs at the top of the Backup and Restore Chore Condition folio in the Readiness department. You tin view the condition for the current recovery chore in the lower function of the page in the Restore section. The status page updates every 30 seconds automatically. You can manually update the status details past clicking Refresh. Fill-in and recovery are Timer service jobs. Therefore, it may take a several seconds for the recovery to kickoff.

    If you receive any errors, you lot can review them in the Failure Bulletin column of the Backup and Restore Job Status folio. You lot can also detect more details in the Sprestore.log file at the UNC path that you lot specified in step three.

  9. When you restore a Search service application, it is automatically paused. To resume the Search service application when the restore has completed y'all need to use PowerShell:

    Verify that yous are a fellow member of the Administrators group on the server on which you lot are running the PowerShell cmdlets.

    An administrator tin can use the Add together-SPShellAdmin cmdlet to grant permissions to employ SharePoint Server cmdlets.

    Note

    If yous practice non have permissions, contact your Setup administrator or SQL Server ambassador to asking permissions. For additional information about PowerShell permissions, see Add-SPShellAdmin.

  10. Offset the SharePoint Management Beat out.

  11. At the PowerShell command prompt, type the following command:

                      $ssa = Go-SPEnterpriseSearchServiceApplication <SearchServiceApplicationName> $ssa.ForceResume(0x02)                                  

    Where:

    • <SearchServiceApplicationName> is the name the service application yous want to resume.

Note

Alphabetize files are restored to ane replica per index partition. After the restore has completed, the index for each replica is replicated to the other index replicas. During this process the search topology is fully functional for crawling and queries, merely is non fault tolerant. Depending on the size of the farm and the index, the process can accept several hours. The index replicas appear as degraded in the Search Assistants UI and in the output of the Get-SPEnterpriseSearchStatus Microsoft PowerShell cmdlet during the process.

You cannot restore the complete SharePoint Search service awarding by using SQL Server tools. However, you tin can utilise SQL Server tools to restore the databases that are associated with the service awarding. To restore the complete Search service application, use either PowerShell or Central Administration.

To restore the databases for a Search service awarding by using SQL Server tools

  1. Verify that the user account that you are using to restore the databases is a member of the SQL Server sysadmin fixed server part on the database server where each database is stored.

  2. Open SQL Server Management Studio and connect to the database server.

  3. In Object Explorer, aggrandize Databases.

  4. Right-click the database that you desire to restore, indicate to Tasks, indicate to Restore, then click Database.

  5. In the Restore Database dialog, on the Full general page, select the database to restore to from the To database drop-down list.

  6. Select the restore source from the From database drib-downward list.

  7. In the Select the backup sets to restore section area, select the check box adjacent to the database.

  8. On the Options tab, select the recovery state from the Recover country section.

    For more information nearly which recovery type to utilise, run into Recovery Models (SQL Server) .

  9. Click OK to restore the database.

  10. Repeat steps 1-9 for each database that is associated with the service application.

Run across also

Concepts

Back up Search service applications in SharePoint Server