Backup and Restore Search Service Application

本文介绍如何使用PowerShell脚本备份及恢复SharePoint搜索服务应用及其代理,包括具体的命令示例。通过测试案例验证了该方法的有效性,特别强调了避免全量爬网的必要性。

Backup

there are 2 things to back up:

  • search service app
  • search service app proxy

Use PowerShell script or backup in Central Admin. e.g. (need to specify the backup directory and backup item name)

Backup-SPFarm -Directory "\\******" -BackupMethod Full -Item “Farm\Shared Services\Shared Services Applications\Search Service Application” -Verbose
Backup-SPFarm -Directory "\\*****" -BackupMethod Full -Item "Farm\Shared Services\Shared Services Proxies\Search Service Application" -Verbose

backup search service app and its proxy in a network location, better in the DB server.


Restore:

  • search service app
  • search service app proxy

PowerShell script examples:

Restore-SPFarm -Directory "\\***" -Item "Farm\Shared Services\Shared Services Applications\Search Service Application" -RestoreMethod Overwrite -Verbose
Restore-SPFarm -Directory "\\**" -Item "Farm\Shared Services\Shared Services Proxies\Search Service Application" -RestoreMethod Overwrite -Verbose

During restoration, you will be asked to input account name and password for the search crawl account.


Test cases:

I use 2 test cases here:

  • Index reset (which clears all search history as well as all indexed items, the searchable items turn to 0)
  • modify the topology of search service application (i.e. add one more query component)
The test result is very positive, the topology is restored, the search crawling history is also restored. The searchable items are the same as when the backup takes place. That's exactly what we want.


Why Backup/Restore

In most of the cases that we need to do a restoration, one/several query components is disabled/not responding, though we are able to fix the query component, and bring it online. But, a full crawl is required, which takes ~3 days to complete.  

We don't like full crawl, it'll utilize many server resource, which affects production environment performance, sometimes it even impacts the service. Moreover, during that all deferential changes will not be searched out.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值