SIGN UP MEMBER LOGIN:    
ARTICLE

Backup/Restore of SharePoint 2010 site Collection using Power Shell

Posted by Destin joy Articles | SharePoint October 21, 2010
In this article I am showing you how to perform backup/restore operation using Power Shell,
Reader Level:

In this article I am showing you how to perform backup/restore operation using Power Shell

1. On the Start menu, click All Programs.

2. Click Microsoft SharePoint 2010 Products.

3. Click SharePoint 2010 Management Shell.

4. At the Windows Power Shell command prompt type the following command:

Image1.gif

5. You will get a Power shell command prompt like below

Image2.gif

6. In SharePoint 2010, Power Shell command Backup-SPSite is used for taking backup

7. Please see the screen shot for the backup Power Shell command

8. Backup-SPSite -Identity http://ServerName:port -Path "c:\backup\file.bak"

 Image3.gif

9. If you want to overwrite a previously used backup file, use the Force parameter. You can use the NoSiteLock parameter to keep the read-only lock from being set on the site collection while it is being backed up. However, using this parameter can allow users to change the site collection while it is being backed up and might lead to possible data corruption during backup.

10. Once this done you will get the backup.

11. Next you have to create site collection then use the below command to restore the backup that we currently taken.

12. Restore-SPSite -Identity http://Servername:port -Path "c:\backup\file.bak" -force

Image4.gif

13. I am using force command because I want to overwrite the existing site collection that I created now.

Login to add your contents and source code to this article
share this article :
post comment
 

Happy to hear it helped you.....

Posted by Destin joy May 05, 2011

Hi, thank you very much. This is simple and nice and helped me at the right time.

Posted by Merin Nakarmi May 04, 2011

Jibin

These are the differences

Backup/Restore

  1. Can back up top-level websites (Site Collections), an individual database, a Web application, or an entire farm.

  2. There is no Default File Extension for back up files

  3. Supports "Full" and "Differential" back up. If "overwrite" option is selected while restoring it overwrites entire SiteCollection

  4. Supports UNC path to save/restore backup files.

  5. Backup of Site Collection can be tracked by stsadm -o backuphistory operation

Import/Export

  1. You can migrate sites, subsites and Site Collection.

  2. Default file Extension (if not mentioned) ".cmp"

  3. Provides "versions" option to control migrate/overwrite files in site

  4. Backup files should be copied to server

  5. Sites/SiteCollections would not track export/Import history

  6. Very useful if you want to restore a particular site form development to existing production webapplication

Posted by Destin joy Oct 28, 2010

Destin in your previous article you mentioned abt import/export .here you mentioned about backup/restore.........Can you tell whats the difference between this two.

Posted by jibin koshy Oct 24, 2010
Nevron Gauge for SharePoint
Become a Sponsor
PREMIUM SPONSORS
  • ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications.
    ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications. Visit DynamicPDF here
Become a Sponsor