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.
No comments:
Post a Comment