SharePoint 2010 Cookbook: How to Recover Data from an Unattached Content Database

SharePoint 2010 offers some new backup and restore features for content data. Almost anything can be backed up and restored, from the whole farm to site collections, services, and search indexes. In this article, we will take a look at how to perform recovery from an unattached content database.

Challenge:

How can I restore a single item or list from a SharePoint backup?

In SharePoint 2007, employing the SQL database backup is a popular method for backing up SharePoint content. It is easier to manage, and requires less administrative work than the out-of-the-box SharePoint backup/restore feature. However, if we just want to recover a single site, list, or document, the process is quite painful and inefficient in SharePoint 2007. We would need to recover the entire farm before we could get to the individual file.

Solutions:

SharePoint 2010 provides a new feature called Unattached Content Database Recovery. Using this method, we can browse the SQL database backup and select just the content we want to recover. Here are the steps:

Step 1: We will assume that you have performed a backup of your site. For example:

                Open Microsoft SQL Server Management Studio > Right click on the content database and select Tasks > Back Up…

 Enter the Backup Name, select Destination, and click OK to start.

Step 2: Now, let's restore this backup database to the SQL Server with a different name.

 Open Microsoft SQL Server Management Studio > Right click on Databases and select Restore Database…

Enter the new database name. Make sure you don't overwrite the original content database. Select the Source and click OK to start.

 

Step 3: Go to Central Administration > Backup and Restore > Recover data from an unattached content database.

 

Step 4: Enter the Database Name and Authentication, and then choose Browse content.

 

Step 5: In this example, we will recover a Calendar list from the backup set:

 

Step 6: Enter the File path and click on Start Export.

 

Step 7: Finish export.

 

Step 8: The exported .cmp file can then be imported to SharePoint using the SharePoint 2010 Management Shell (which is also a new feature in SharePoint 2010) command:

Import-SPWeb -identity http://destination_sitecollection -path pathexported_file.cmp

For example:

               

Discussion:

  • Supported databases include read-only content databases that have been restored from a supported backup technology and SQL Server database snapshots of content databases.
  • This feature is available in SharePoint 2010 Server and Foundation.

The limitations of this feature are:

  • You have to know where the items that you want to recover are, and in which backup set.
  • You cannot recover a single item. The granularity is site collection, site, or a list.

See Also:

SharePoint

Applications

SharePoint apps are stand-alone applications that perform specific tasks on a SharePoint site. Apps can perform functions such as managing a discussion board or knowledge base, performing project management or time tracking tasks, or doing other workflow operations.

SharePoint

Product Suites

Experience greater power and savings by bundling our SharePoint apps and web parts.


Essentials


Essentials Plus


Bamboo Premier


Project Management Suite


Knowledge Management Suite


External User Manager


SharePoint

Web Parts

Extend SharePoint beyond its out-of-the-box capabilities by tailoring it to your requirements with Bamboo Solution’s growing portfolio of Web Parts. Web Parts are the building blocks of pages on a SharePoint site that can be used to customize the user interface and content of a site page. 

SharePoint

Product Suites

Experience greater power and savings by bundling our SharePoint apps and web parts.


Essentials


Essentials Plus


Bamboo Premier


Project Management Suite


Knowledge Management Suite


External User Manager


Office 365

Cloud Parts

Cloud Parts are functional components that extend your SharePoint environment whether it’s hosted, on-premises, or part of Microsoft Office 365. More than mere ports of existing software to the cloud, our Cloud Parts have been built from the ground up to take advantage of the best that the cloud has to offer.

SharePoint

Product Suites

Experience greater power and savings by bundling our SharePoint apps and web parts.


Cloud Parts Suite for O365/SP Onl.


Featured Services

SharePoint Health Check

A SharePoint Health Check will identify the causes of issues and risks associated with your specific environment, and is custom tailored to provide you with the best recommendations to optimize your SharePoint environment.

SQL Health Check

Document recommendations relating to performance, stability, availability, or a specific focus you request of your SQL Server database instances.

My SharePointXperts

The truth is that each SharePoint skill may not be a full time job for many organizations, and it is nearly impossible for one person to do everything you need – so augment your team with SharePointXperts; providing the skill sets you need when you need them!