将内容从prod复制到UAT [英] Copy content from prod to UAT
问题描述
嗨朋友们,
我要求客户将内容从Prod复制到UAT。
我们计划将内容数据库从Prod恢复到UAT。
在prod中我有56个主机名站点,在UAT中我们有56个但是有不同的URL。
因此,如果我们将Prod的内容数据库恢复为测试,那么这将有效吗?
是否会使用Prod的内容更新名为site collection的测试56主机的内容。
我知道它适用于托管路径网站,但主机命名网站不确定它是否以这种方式工作。
任何想法?
每个站点都连接到一个数据库,并且自动生成一个GUID。恢复和替换将不适用于您的情况。
您需要:
1-获取您网站的内容数据库的数据库名称。
2-从您的站点卸下旧数据库。
3-在您的站点上安装已恢复的数据库。
您可以在下面找到Sharepoint Powershell脚本。
Get-SPContentDatabase -WebApplication http:// site:91
Dismount-SPContentDatabase -Identity WSS_Content_old_91
Mount-SPContentDatabase -Name WSS_Content_New_91 -DatabaseServer DB_IP_Address -WebApplication http:// site:91
祝你好运。
问候,
Seyfeddine ALOUI。
Hi Friends,
I have a requirement of copying content from Prod to UAT for a client.
We are planning to restore the content database from Prod to UAT.
In prod I have, 56 host names site and in UAT we have 56 but of different urls.
So if we restore the content database of Prod into test then will that work ?
Will that update the content of the test 56 host named site collection with the content of Prod.
I know it worked for managed path sites but for host named site not sure if it works in that way.
Any idea ?
Hi,
Each site is connected to a database and havin a GUID automatically generated. Restore and replace will not work in your case.
You need :
1- Get the DB name of the content DB for your site.
2- Dismount the old DB from your site.
3- Mount the restored DB with your site.
You can find below the Sharepoint Powershell script.
Get-SPContentDatabase -WebApplication http://site:91 Dismount-SPContentDatabase -Identity WSS_Content_old_91 Mount-SPContentDatabase -Name WSS_Content_New_91 -DatabaseServer DB_IP_Address -WebApplication http://site:91Good luck.
Regards,
Seyfeddine ALOUI.
这篇关于将内容从prod复制到UAT的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!