Showing posts with label backup a site collection. Show all posts
Showing posts with label backup a site collection. Show all posts

Wednesday, May 30, 2012

Getting a site collection backup in SharePoint 2010

Getting a site collection backup in SharePoint 2010 can be done in two methods.
  • Through the Central Admin  
 Go to Central Admin -> Backup and Restore -> Perform a Site Collection Backup -> Give a name and a file location for the backup and click ok.
  • Using PowerShell
Backup -SPSite -Identity <site collection host header> -Path <path of the backup file>

Reference: Technet

Wednesday, April 6, 2011

Restoring a sitecollection backup in SP 2010

In SharePoint 2010 Management Shell you can enter the following command in order to restore a site collection backup in to a SharePoint 2010 we application.

Restore-SPSite -Identity -Path [-DatabaseServer ] [-DatabaseName ] [-HostHeader ] [-Force] [-GradualDelete] [-Verbose]



For example in order to restore a site collection to a certain web application we can use the following command.

PS C:\> Restore-SPSite -Identity http://cd-sgunasena -Path C:\UpdateFw\sitecollectionbackup\abc.bak -HostHeaderWebApplication http://abcdemo.abcompany.com -Force


Reference: MSDN