Sunday, February 5, 2012

Restore a Site Collection in SharePoint 2010

Before restoring a site collection, you can check this article on how to take backup of a site collection.

There are different ways that you can restore a site collection in SharePoint 2010 like stsadm, powershell.

Here is the command to take backup of site collection:
STSADM -o restore -url -filename [-overwrite]

STSADM -o restore -url http://your-site-url -filename c:\backup\MySiteCollection.bak

Here is the powershell command to restore a site collection.
Restore-SPSite -Path [-force]
Also there are lots of parameters of this command.

Restore-SPSite http://your-site-url -path c:\backup\MySiteCollection.bak [-force]