SharePoint 2013-将网站集备份从产品还原到开发人员时出错 [英] SharePoint 2013-Error while restoring site collection backup from prod to dev

查看:82
本文介绍了SharePoint 2013-将网站集备份从产品还原到开发人员时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须将生产备份还原到QA/dev服务器,我已经使用powershell进行了备份,但是现在当我在test/dev上还原生产备份时,这给了我错误,我尝试了以下方案

I have to restore production backup to QA/dev server, I have backup using powershell but now when I restoring the same on test/dev, It's giving me the error, I have tried below scenario's

不起作用->尝试将产品备份还原到test/dev

Not worked-> Try to restore prod backup to test/dev

不起作用-备份测试一个网站集并将其还原到同一服务器场中的另一个网站集上
工作-备份网站,然后将其还原到同一站点

Not Worked-take backup of test one site collection and restore it on another site collection on same farm
worked-backup of site and then restore it on same site

我已经检查了补丁和CU之类的所有东西,产品和测试都具有相同的配置,这可能是什么问题?

I have checked all things like patching and CU, both prod and test having same configuration, what could be the issue?

PS C:\Windows\system32> Restore-SPSite -Identity "site_url" -Path "_path"  -force

Confirm
Are you sure you want to perform this action?
Performing operation "Restore-SPSite" on Target "site_url".
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"): a
Restore-SPSite : <nativehr>0x80070003</nativehr><nativestack></nativestack>
At line:1 char:1
+ Restore-SPSite -Identity "site_url" - ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (Microsoft.Share...dletRestoreSite:SPCmdletRestoreSite) [Restore-SPSite], D
   irectoryNotFoundException

Vishal Goyal

Vishal Goyal

推荐答案

听起来像,您传递了错误的网站网址.可能是您传递的Web应用程序名称,而不是网站集.

Sound like, you were passing wrong site url. Might be your passing webapplication name rather than site collection.

为什么不选择装载和卸载内容数据库而不是备份和还原.备份生产内容数据库并还原到UAT db服务器.在PowerShell中运行以下命令.

Why don't you go for Mount and demount content database rather than back up and restore. Take back up of production content database and restore into UAT db server. Run following commands in PowerShell.


SiteUrl =目标网址"
SiteUrl = "Desintation url"


CurrentContentDatabase ="contentdbname"
CurrentContentDatabase = "contentdbname"


这篇关于SharePoint 2013-将网站集备份从产品还原到开发人员时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆