开发者

Move from TFS 2008 to TFS 2010

We have succesfully built our TFS 2010 infrastructure and the first VM using Visual Studio 2010. Now I have a very simple question. How I can move a solution from our existing TFS 2开发者_如何学运维008 to the new one 2010? Is there any tool included in TFS?


Firstly, I would recommend that you backup your TFS databases from the original TFS 2008 Data Tier server:

BACKUP DATABASE TfsActivityLogging
TO disk = 'C:\TFS 2008 Upgrade.bak'
WITH INIT
BACKUP DATABASE TfsBuild
TO disk = 'C:\TFS 2008 Upgrade.bak'
BACKUP DATABASE TfsIntegration
TO disk = 'C:\TFS 2008 Upgrade.bak'
BACKUP DATABASE TfsVersionControl
TO disk = 'C:\TFS 2008 Upgrade.bak'
BACKUP DATABASE TfsWorkItemTracking
TO disk = 'C:\TFS 2008 Upgrade.bak'
BACKUP DATABASE TfsWorkItemTrackingAttachments
TO disk = 'C:\TFS 2008 Upgrade.bak'

Then move the backup file to the new server, and restore them:

RESTORE DATABASE TfsActivityLogging
FROM Disk = 'C:\TFS 2008 Upgrade.bak'
WITH RECOVERY,
REPLACE,
FILE = 1,
MOVE 'TfsActivityLogging' to '< DataFileLocation>\TfsActivityLogging.mdf',
MOVE 'TfsActivityLogging_log' to '< LogFileLocation>\TfsActivityLogging_log.ldf'
RESTORE DATABASE TfsBuild
FROM Disk = 'C:\TFS 2008 Upgrade.bak'
WITH RECOVERY,
REPLACE,
FILE = 2,
MOVE 'TfsBuild' to '< DataFileLocation>\TfsBuild.mdf',
MOVE 'TfsBuild_log' to '< LogFileLocation>\TfsBuild_log.ldf'
RESTORE DATABASE TfsIntegration
FROM Disk = 'C:\TFS 2008 Upgrade.bak'
WITH RECOVERY,
REPLACE,
FILE = 3,
MOVE 'TfsIntegration' to '< DataFileLocation>\TfsIntegration.mdf',
MOVE 'TfsIntegration_log' to '< LogFileLocation>\TfsIntegration_log.ldf'
RESTORE DATABASE TfsVersionControl
FROM Disk = 'C:\TFS 2008 Upgrade.bak'
WITH RECOVERY,
REPLACE,
FILE = 4,
MOVE 'TfsVersionControl' to '< DataFileLocation>\Tfs_< TeamProjectCollectionName>.mdf',
MOVE 'TfsVersionControl_log' to '< LogFileLocation>\Tfs_< TeamProjectCollectionName>_log.ldf'
RESTORE DATABASE TfsWorkItemTracking
FROM Disk = 'C:\TFS 2008 Upgrade.bak'
WITH RECOVERY,
REPLACE,
FILE = 5,
MOVE 'TfsWorkItemTracking' to '< DataFileLocation>\TfsWorkItemTracking.mdf',
MOVE 'TfsWorkItemTracking_log' to '< LogFileLocation>\TfsWorkItemTracking_log.ldf'
RESTORE DATABASE TfsWorkItemTrackingAttachments
FROM Disk = 'C:\TFS 2008 Upgrade.bak'
WITH RECOVERY,
REPLACE,
FILE = 6,
MOVE 'TfsWorkItemTrackingAttachments' to '< DataFileLocation>\TfsWorkItemTrackingAttachments.mdf',
MOVE 'TfsWorkItemTrackingAttachments_log' to '< LogFileLocation>\TfsWorkItemTrackingAttachments_log.ldf'

Then, on the new server, run the import command:

"C:\Program Files\Microsoft Team Foundation Server 2010\Tools\tfsconfig.exe" import /sqlinstance:server078.live01.lan.local /collectionName:< TeamProjectCollectionName> /confirmed

You should be then ready to go. :)


The Microsoft Rangers produced the following Resources on this some time ago on this:

TFS Integration Platform

This includes some tools to assist different migration strategies, along with white papers discussing them, and some nice posters to help guide your thinking.


Edit to add:

I've also just written a series of blog posts detailing my experiences attempting to do just this:

Killing Off TFS 2005 - Part 1

But as a heads up, unless you've got a fairly simple Team Project, you're in for a world of pain - to be fair the documentation that comes with it does warn you of this.


If you just want to move one project at a time you can use Antony Gibb's procedure and then delete the projects in TFS 2010 that you didn't want to yet move. Then on the TFS 2008 server delete the project that you did want to have moved. Example:

You have projects A, B and C on TFS 2008 and you want to move only project A.

  1. Perform the above procedure
  2. Delete projects B and C from the TFS 2010 after importing
  3. Delete project A from the TFS2008 instance.


Also consider that you may have some things from the old system you don't want to carry over but perhaps do want to be able to look at for posterity. After doing the TFS Integration tool you can then upgrade your old 2008 tfs instance to 2010 (which will have the effect of upgrading your old team collection to the 2010 version and then you could add it as another collection (read only) to your new 2010 instance. Then you have all your history and projects but they don't interfere in your new pristine installation.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜