SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a production SharePoint 2010 server with multiple site collections and sometimes I would like to copy the content from the site collections into my development environment so that I can test my upcoming changes to various features against what the actual data should be. How can I copy this data from production back to my development environment.

share|improve this question
up vote 2 down vote accepted

I found my solution from this blog entry

Here are my modified basic steps:

  1. Go into SQL Server Management Studio and make a backup of the production content database.
  2. Take a backup of the development environment content database as well just in case things go awry.
  3. Detach and reattach the development content database so that it kills any active connections.
  4. Restore the production content database backup to the development environment.
  5. Make sure that any user security needed is recreated in development.
  6. Open powershell and enter

    Dismount-SPContentDatabase "DBNameHere"

  7. Enter

    Mount-SPContentDatabase "DBNameHere" -DatabaseServer "DBServerHere" -WebApplication "http://SiteName"

share|improve this answer

Your Answer


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.