1. Check in all code
2. Stop the TFS Service: Run the command line and switch the path to the TFS installation path: C:\Program Files\Microsoft Team Foundation Server 2010\tools
Run: Tfsservicecontrol quiesce
3. Backup (or Detach) TFS database
4. Restore the TFS database to the new server's database
5: Install TFS Server on a new server
6. Run the command line and switch to the TFS Server installation path: C:\Program Files\Microsoft Team Foundation Server 2010\tools
Execute the following command in turn: note: sqlinstance, account, DatabaseName and other parameters are modified according to the actual situation, where account is generally filled with the administrator user name
TFSConfig Prepsql/sqlinstance:localhost
TFSConfig accounts/resetowner/sqlinstance:localhost/databasename:tfs_configuration
TfsConfig Accounts/add/accounttype:applicationtier/account:administrator/sqlinstance:localhost/databasename:tfs _configuration
TfsConfig Accounts/add/accounttype:reportingdatasource/account:administrator/sqlinstance:localhost/databasename : TFS_Configuration
The above command will prompt the log to save the path, if an error can go to C:\ProgramData\Microsoft\Team foundation\server configuration\logs open the corresponding log, to see the specific error
In particular the implementation of TfsConfig Accounts/add/accounttype:applicationtier/account:administrator/sqlinstance:localhost/ Databasename:tfs_configuration
This command, may appear to add user to tfs_configuration failure error, generally because the database already exists to add the user, and the user owns the schema, causing TFSConfig to add the user can not automatically delete it, so this time to manually delete the corresponding schema, Then delete the user, and then re-execute the error command line
7. Open the team Foundation Server administration Console and select the Application Tier Only wizard on the left to follow the prompts to configure it step-by-step.
Reference: http://msdn.microsoft.com/zh-cn/library/vstudio/ms404869 (v=vs.100). Aspx#updatenetworkservice
TFS 2010 Migration/Reload/restore steps