Saturday, June 16, 2012

Restore a site collection using Windows PowerShell in SharePoint 2010

1.      Open SharePoint 2010 Management Shell.
2.      At the Windows PowerShell command prompt
3.      Type the following command, and then press ENTER:
Restore-SPSite -Identity <Site collection URL> -Path <Backup file> [-DatabaseServer <Database server name>] [-DatabaseName <Content database name>] [-HostHeader <Host header>] [-Force] [-GradualDelete] [-Verbose]
4.      If you want to restore the site collection to a specific content database, use the DatabaseServer and DatabaseName parameters to specify the content database.
5.      If you do not specify a content database, the site collection will be restored to a content database chosen by Microsoft SharePoint Server 2010.
6.      If you are restoring a host-named site collection, use the Identity parameter to specify the URL and use the HostHeader parameter to specify the URL of the Web application that will hold the host-named site collection.
7.      If you want to overwrite an existing site collection, use the Force parameter.


Per Sivertsen said...

there is an issue with the site collection after restore to new url. it does not show up in the membership list for the users.

Pratik Vyas said...

Did you restore this site / database from SP 2007 or this is from Sp 2010 to 2010 ? More specifically are you looking for user information list ?

Popular Posts


The opinions expressed on this blog are the personal views of Pratik's SharePoint Blog, and do not represent or reflect the viewpoints or policies of any past, present, or future employer, colleague, or customer, or any other entity. The posts on this blog are provided ‘as is’ with no warranties, express or implied, and confer no rights. Use of information contained within this blog, including specific technical steps mentioned herein, is at your own risk. References to specific software products, processes, resources, or companies do not imply any endorsement.