Showing posts with label site collection. Show all posts
Showing posts with label 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

Monday, April 4, 2011

Before deploying SP 2010 sites in powershell

I recently joined a release engineering management group for our SharePoint developments in the work place. And I'm now learning deployment related stuff.

Some quick facts:
  • Be sure to be logged in as a farm administrator (I get this confused sometimes as we meddle with a lot of test accounts in order to test SharePoint developments)
  • Make sure the DisableLoopback feature is enabled. You can do this by going to  Registry editor by typing regedit in start menu -> run. In registry goto HKEY_LOCAL_MACHINE -> SYSTEM -> CurrentControlSet -> Control ->Lsa . Right Click on Lsa and select AddNewDWord (32bit) Value and enter "DisableLoopbackCheck" as the name and enter 1 when prompted to enter a value. 
Keep in mind to make sure the following services are enabled and started before running windows powershell to deploy SharePoint 2010 sites.
  • SharePoint 2010 Administration
  • SharePoint 2010 Timer
  • World Wide Web Publishing service