Skip to main content

From The Field

Go Search
From The Field
  

From The Field > Posts > Moving MySite data to its own web app and own DB
Moving MySite data to its own web app and own DB

Thanks to PFE legend Lisa Guthrie for this post.


Question

Is there a way to extract the MySite data created on the WSS_Content database in a standalone install and move this to a separate content database then use a new web application to host MySite?

 

Answer

  1. Make sure you have this WSS hotfix installed: http://support.microsoft.com/kb/939188/ (Note: This fix is also included in WSSv3 SP1)
  2. Create a new, empty content database in your OLD web application. Let’s call it MySitesContentDB.
  3. Run the following command to enumerate all the site collections in your default content database:
    stsadm –o enumsites –url http://oldservername –databasename dev1_SITE > MySites.xml
  4. Open the MySites.xml file that is created in Notepad or another text editor. You’ll see a <Site> entry for every site in the content database. Remove any entries that refer to sites that are not MySites. You should be left with a list of all of your MySites. Save the file.
  5. Run the following command to move all of your MySites from the default content database to the new content database:
    stsadm –o mergecontentdbs –url http://oldservername –sourcedatabasename dev1_SITE -destinationdatabasename MySitesContentDB –operation 3 –filename MySites.xml
  6. Create a NEW web application to host your MySites.
  7. Remove MySitesContentDB from the list of content databases for the OLD web application.
  8. Add MySitesContentDB to the list of content databases for the NEW web application.
  9. Update the SSP so that it uses the NEW web application as the MySite web application.
  10. Test and make sure everything looks good.

Comments

Re: Moving MySite data to its own web app and own DB

Great article - thanks Matt. It is worth noting that the new mergecontentdbs command allows you to move any site collection to a different content database, not just My Sites.
at 12/17/2007 4:14 AM

Site Owner requirement

I also noticed that user running the command needs to be a site owner otherwise stsadm errors out updating the sitemaps table in Config db.
 
at 12/27/2007 11:09 AM

databasename switch

Hi there,
 
Loving the article. However i am looking at the available switches for the enumsites and there is no switch available for databasename. This throws an error for me.
 
Otherwise very good.
at 5/8/2009 9:07 AM

Add Comment

Items on this list require content approval. Your submission will not appear in public views until approved by someone with proper rights. More information on content approval.

Title (required) *


Body (required) *

Name (required) *


Are you a bot? *


Anti-Spam Filter 1

What's 10+4? *


Anti-Spam Filter 2
Attachments