Please upgrade your web browser now. Internet Explorer 6 is no longer supported.
Thinking Web Solutions?
We create smart, fun, functional websites that make your web a better place.

Restoring a content database to a new server

This is a pretty basic procedure, but I have seen it gone wrong so many times I thought it worthy of a quick blog post.

The process is as follows:

  1. Take a SQL backup of an existing content database
  2. Restore SQL backup to new server
  3. Create managed paths to match the structure on the previous server ** important (see below)
  4. Run the following stsadm command to attach the content db.
  5. stsadm -o addcontentdb -url [WebAppURL] -databasename [RestoredDBName]

**

Step number 3 is where the problems all occur. When the addcontentdb command is run, the configuration database will be populated with all the sites in the content database. They will be populated according to the path structure in the previous server. Therefore your sites will not be restored if the managed paths do not exist.

Post a comment