问题
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:
- Detatch the collection from your current TFS 2012 using the Team Foundation Server Administration Console. This will copy the configuration into the collection database.
- Take a full backup of the collection database (called something like Tfs_DefaultCollection) using SQL Server Management Studio (SSMS).
- Restore the original collection on your TFS 2012 server
- 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.
- Attach the collection on your TFS 2015 server using the Team Foundation Server Administration Console
- Start the collection so that it get's into the Online state.
- 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