好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

SharePoint数据保护之(二)还原网站集 - Windows操作


Restore Site Collection
备份完Site Collection之后(见上一篇博客),如果想还原,SharePoint并没有提供页面上的操作,必须使用PowerShell 命令还原。


使用SharePoint 2013 Management Shell命令行工具,一定要以管理员身份运行。



Windows会弹出UAC提示,点击Yes。



这时候就可以使用Restore-Site 命令来还原了。这个命令有几个参数,最简单的是两个参数:

目标url。想把SiteCollection还原到哪里路径。

-path,备份出来的bak文件。

通过往同一个Web Application下还原,可能遇到这个错误:]No content database in the web application were available to storeyour site collection ]。

 

这个是因为原来的Site Collection还存在在当前的Content Database,导致还原冲突。

如果尝试往原来的Site Collection还原,还会遇到以下错误:

 

要想把Site Collection还原成功,可以:

不删除以前的Site Collection,使用-force参数,覆盖掉已经存在的site collection

 

在原来的Web Application里面创建一个新的Content Database,往这里面还原。

使用-ContentDatabase参数。

往另外一个Web Application里还原。

 

这样这个Site Collection就被还原了:

 

查看更多关于SharePoint数据保护之(二)还原网站集 - Windows操作的详细内容...

  阅读:49次