Copy TFS 2012 collection to another server with TFS 2015 Installed

倾然丶 夕夏残阳落幕 提交于 2019-12-18 05:19:14

问题


We have an old server machine with TFS 2012 installed on it. It has the 'DefaultCollection' of project collection. We want to copy (not move, i.e. leaving the collection in place) the 'DefaultCollection' collection to another machine which has TFS 2015 installed.

How can we do that please?

Thanks, ashilon


回答1:


It depends a bit on how complicated your TFS installation is, but here are the steps for a simpler one server setup without Sharepoint:

  1. Detatch the collection from your current TFS 2012 using the Team Foundation Server Administration Console. This will copy the configuration into the collection database.
  2. Take a full backup of the collection database (called something like Tfs_DefaultCollection) using SQL Server Management Studio (SSMS).
  3. Restore the original collection on your TFS 2012 server
  4. Re-attach the database on your TFS 2015 server using SSMS. Note that if you already created a collection on this server with the name DefaultCollection, you either need to delete/rename this or restore the cloned collection using a new name.
  5. Attach the collection on your TFS 2015 server using the Team Foundation Server Administration Console
  6. Start the collection so that it get's into the Online state.
  7. Please note that build servers, drop locations and so on will now point to same thing in the original collection and the clone collection, so you need to do a bit of cleanup.

The above is a shorter version of this: https://msdn.microsoft.com/en-us/library/dd936158(v=vs.110).aspx

Edit: I have successfully used the above approach to make a test migration from TFS 2010 to TFS 2013 RTM followed by the migration of our production environment. We use the server with the test migration for testing new updates before applying to production and we have done so with all updates from 2013 RTM until 2015 Update 3. I am currently applying the same approach in upgrading to 2017 in order to get a fresh server with never version of SQL.



来源:https://stackoverflow.com/questions/38553648/copy-tfs-2012-collection-to-another-server-with-tfs-2015-installed

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!