Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Lectori salutem,

I am reading into backup and restore operations in SharePoint 2010. I have noticed that in Central Administration > Backup and Restore > Granular Backup there is the possibility to backup a site collection and to export a site collection.

Powershell commands are:

  • Backup a site collection:

    Backup-SPSite -Identity -Path [Force] [-NoSiteLock] [-UseSqlSnapshot] [-Verbose]

  • Export a site collection:

    Export-SPWeb -Identity -Path [-ItemUrl ] [-IncludeUserSecurity] [-IncludeVersions] [-NoFileCompression] [-GradualDelete] [-Verbose]

What is the difference between performing a backup and performing an export?

Thank you in advance.

share|improve this question

4 Answers 4

up vote 2 down vote accepted

Backup-SPSite is generally used when you want to replicate the entire site collection (including all subsites) to an existing web application.

Export-SPWeb is generally used when you want to replicate just a single subsite to an existing site collection.

Also below links are worth to read for other major differences:

http://blogs.msdn.com/b/yvan_duhamel/archive/2009/05/18/some-key-differences-between-stsadm-export-and-backup-operations.aspx

http://blogs.technet.com/b/stefan_gossner/archive/2009/05/27/limitations-of-stsadm-o-export-import-related-to-publishing-sites.aspx

share|improve this answer

There is just a subtle difference:

  • Workflows are included when you use the Backup-SPSite cmdlet.
  • If you backup a root web of a site collection the site collection recycle bin will obviously not be included.
share|improve this answer

Making a backup of the site collection is best used when you need to restore it on the same environment

It's nearly like a content database backup.

Exporting a site collection will allow you to import it on a different environment. It's working in a similar fashion than content deployment jobs. It will include in an environment agnostic way all the assets for to allow you to import it on a different farm.

In short : if you're working in single environment (or cloned environment) backup & restore will do the trick. If you need to move site collection between environments, export & import are better suited.

share|improve this answer

The difference is they are two different objects, so two different commands for two different purposes. You are mixing terminologies. Look at the description of Export-SPWeb in your link ("Exports a site, list, or library"). You aren't exporting a site collection...you are exporting a site in your case. A site collection and site are different. A site collection is, as the name implies, a collection of sites. A site resides within a site collection. So Backup-SPSite backs up a site collection, which would include all sites within the site collection. Export-SPWeb exports a site, not a site collection. The object type on a site is web, thus Export-SPWeb.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.