Share via


Preparetomove: Stsadm operation (Office SharePoint Server)

Applies To: Office SharePoint Server 2007

This Office product will reach end of support on October 10, 2017. To stay supported, you will need to upgrade. For more information, see , Resources to help you upgrade your Office 2007 servers and clients.

 

Topic Last Modified: 2015-03-09

Operation name: Preparetomove

Description

Used to temporarily stop the profile and membership synchronization service to synchronize user profile information to a specific site collection or a specific content database. Administrators run preparetomove before doing operations that result in change content databases ID or site collection ID; this includes moving a site collection from one content database to a different one.

The profile and membership synchronization service synchronizes user profile data down to the user information lists for all site collections to ensure consistent user data across the environment. The service also synchronizes site membership data back to the user profiles that store all of the sites where the user is a member. This site membership data is displayed on the user’s My Site. Not running preparetomove where required can cause deletion of user membership metadata. This metadata includes the selections made in the Privacy and Grouping section on the Edit Profile page for My Site memberships.

For additional information about how to configure group and privacy settings within a personalization site, see Manage personalization policies.

Important

Before moving a site collection between content databases, the preparetomove operation must be run in order to ensure all user membership metadata are correctly preserved.

Syntax

stsadm -o preparetomove

**   -contentdb <server name: database name>**

**   -site <URL name>**

**\[-oldcontentdb\] \<unique identifier\>**

**\[-undo\]**

Parameters

Parameter Value Required? Description

contentdb

A valid content database GUID, such as "WSS_Content_21d186e1-7036-4092-a825-0eb6709e9285"

Yes

The name of the content database that is to be moved to a new Web application.

To determine the database name, use the Enumcontentdbs: Stsadm operation (Office SharePoint Server) operation.

site

A valid URL, such as

"http://server_name"

Yes

URL of the site that is to be moved to a new Web application.

oldcontentdb

A valid content database GUID, such as "21d186e1-7036-4792-a825-0eb6709e9235"

No

When the preparetomove operation is not run prior to moving the content database, synchronization can fail on a particular content database that has been moved to a new Web application. Synchronization is fixed for that content database.

undo

<none>

No

Undoes the last preparetomove operation, for example, if you decide not to move the site or content database.

See Also

Concepts

Manage My Site host locations