How Restore a multi-tenant site and change host header


I'm trying do replicate a new test environment (FARM A)  from my production environment (Farm B). I have a multi-tenant site with 6 sites colection. 

Does anybody know what is the best procedure to do that?

I've searched a lot but and I never found something without problems. 

April 28th, 2012 1:59pm


I would suggest to use Export-SPWeb from production Farm A, then Import-SPWeb to Farm B. Export-SPWeb will export the entire site collection, if you want it can even keep the permissions(using IncludeUserSecurity).
For reference:



If its a publishing environment, then you could even automate the replication using a content deployment.

Content deployment overview (SharePoint Server 2010)


Free Windows Admin Tool Kit Click here and download it now
April 29th, 2012 8:45pm

Thanks a lot for your answser. My problem is if I do with export and import commands, I will lost all tenant site configurations (Cthub, metadata information, etc). All shared services will lost because they are not in the same database as content...
May 5th, 2012 1:41pm

Hello Vitor,

Export and Import all the site configurations (Cthub, metadata information, etc). and make sure to reassign the sitesubscription with the right URL mapping to the respective OU path.

$sub = New-SPSiteSubscription

Set-SPSite $url -SiteSubscription $sub

Example: Set-SPSiteSubscriptionConfig $url -UserAccountDirectoryPath $ou

Set-SPSiteSubscriptionConfig $url/admin -UserAccountDirectoryPath $ou

Note: If you are importing with the same URL in the same farm then the OU information will be stored in the user profile service application database which inturn won't allow to use the new subscription.


Shiva Prasad B C

Cheers!!! Happy Troubleshooting!!!

Free Windows Admin Tool Kit Click here and download it now
July 5th, 2013 6:12pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics