locked
Migrating from TFS 2010 to TFS 2013 RRS feed

  • Question

  • I have few years of code in TFS 2010 including c# code, SQL Server, and Tests.

    I've just installed TFS 2013 in another new server.

    I'd like to migrate all my code from the TFS 2010 Server to my new TFS 2013 one.

    How do I do it?

    Thanks,

    janiv.


    Janiv Ratson. Technology and Development Expert. | BL: http://blogs.microsoft.co.il/blogs/janiv/ | LI: http://www.linkedin.com/in/janiv | TW: http://twitter.com/janiv http://about.me/janiv

    Friday, October 18, 2013 7:46 AM

Answers

  • What you are trying to is referred to as a migration based upgrade, i.e. you build a new TFS environment and migrate the data into that new environment.

    What you need to do is the following:

    1. Set up the SQL Server on your new environment
    2. Backup all your TFS databases on your TFS 2010 environment
    3. Restore all databases on your new SQL Server
    4. If TFS 2013 is already installed deinstall it
    5. Install TFS 2013 and select "Upgrade".
    6. Your databases will be upgraded to the TFS 2013 schema

    You can find all necessary details in the TFS Ultimate Upgrade Guide

    Good luck

    • Marked as answer by janiv Wednesday, October 23, 2013 11:37 AM
    Friday, October 18, 2013 10:50 AM

All replies

  • What you are trying to is referred to as a migration based upgrade, i.e. you build a new TFS environment and migrate the data into that new environment.

    What you need to do is the following:

    1. Set up the SQL Server on your new environment
    2. Backup all your TFS databases on your TFS 2010 environment
    3. Restore all databases on your new SQL Server
    4. If TFS 2013 is already installed deinstall it
    5. Install TFS 2013 and select "Upgrade".
    6. Your databases will be upgraded to the TFS 2013 schema

    You can find all necessary details in the TFS Ultimate Upgrade Guide

    Good luck

    • Marked as answer by janiv Wednesday, October 23, 2013 11:37 AM
    Friday, October 18, 2013 10:50 AM
  • You would be using a migration upgrade, take a look at http://vsarupgradeguide.codeplex.com/ for an upgrade guide from the ALM Rangers.

    Regards Gordon Beeming -------------------------------------------------------------- Developer who loves pushing the limits. Playing with amazing @Microsoft Tech, #TFS #VisualStudio. #ALMRangers http://gbeeming.wordpress.com/

    Friday, October 18, 2013 1:26 PM
  • Couldnt he just detach his 2010 collection back it up and move it over to TFS 2013 instance and attach? What would be wrong wit that?
    Tuesday, October 22, 2013 2:02 PM
  • Hi Brthomas,

    Just as I mentioned in your another post: http://social.msdn.microsoft.com/Forums/en-US/5590e4a4-c666-42ba-9c8b-65e73fb666d2/migration-from-tfs-2010-to-tfs-2013?forum=tfsadmin

    Detach a collection is always used for moving a team project collection from one deployment of TFS to another, when you move a collection, ideally the version and edition of SQL Server to which you are moving the database matches the version and edition that originally hosted that database.

    For this scenario, it's recommend to do a advanced upgrade just as ACKH said above.

    Best regards,

    Cece


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Wednesday, October 23, 2013 10:06 AM
  • The upgrade process is similar for both TFS 2010 & 2012 if you want to upgrade to TFS 2013. As upgrade process has not changed significantly since TFS 2012. TFS 2013 now requires Windows Server 2008 R2 and higher as well as SQL 2012 SP1 (CU2 recommended) and higher.  Microsoft no longer support Windows Server 2008, SQL Server 2008 R2, or SQL Server 2012 RTM.  
    Backup TFS 2010/2012 server SQL backup. Use SQL Management server to take backup of SQL TFS server.
    Restore backup of TFS 2010/2012 server on new SQl server 2010 using SQL management studio. Restore all TFS backup & do not miss anything.

    Please make sure version of old SQL Server & use the same version while upgrading TFS server to 2013. e.g. If you are using enterprise edition then use SQl 2012 enterprsie else you will face lots of issue while restoring TFS backup. 

    Check step by step guide to upgrade TFS

    http://www.vmwareandme.com/2013/10/step-by-step-how-to-upgrade-team.html


    www.mytricks.in

    Tuesday, October 29, 2013 7:12 AM
  • Hi,

    I have the similar requirement as below,

    1. Backup all your TFS databases on your TFS 2010 environment
    2. Restore all databases on your new SQL Server
    3. If TFS 2013 is already installed deinstall it
    4. Install TFS 2013 and select "Upgrade".
    5. Your databases will be upgraded to the TFS 2013 schema

    My doubt is, how do we get the Source Code to the new TFS Server..?

    Could any one please explain..?

    Thanks,

    venkateswar


    Thanks & Regards P.Venkateswara Reddy

    Friday, December 13, 2013 9:29 AM
  • Hi,

    Could Any one please address this..?


    Thanks & Regards P.Venkateswara Reddy

    Monday, December 16, 2013 6:51 AM
  • The source code from the old server is contained in the databases that you are backing up, restoring and upgrading on the new 2013 server.
    Monday, December 16, 2013 9:13 PM
  • What about SharePoint and Reporting service?

    As Windows Server 2008 is not supported, I need to perform the installation in a new server and I am planning to use the Upgrade process, based on what I read SQL server must to be installed and Database restored in the new server, but I am not sure if I need to install SharePoint just after install SQL Server.

    P.D. I will have SharePoint, SQL and TFS in the same server

    Friday, January 17, 2014 7:59 PM
  • Exactly.

    1. Detach collection in TFS admin console (requirement in order to attach to new TFS environment)

    2. Backup collection db via SQL Admin console

    3. Copy backup to new TFS data tier

    4. Attach via SQL Admin console

    5. Attach via TFS Admin console (TFS upgrades collection schema automatically).

    6. Done.

    Tuesday, August 19, 2014 5:58 PM
  • I am evaluating to migrate from TFS 2010 to TFS 2013.
    In the actual configuration of our TFS 2010 we never configured and used SharePoint and Reporting.
    In the new TFS 2013 installation I would like to use SharePoint.

    My question is: could I backup and restore just TFS_Configuraton and TFS_Collation databases without backup WWS_.bak amd Reporting*.bak Databases?

    I will able to to install and configuring Sharepoint during the Upgrade Installation?


    Wednesday, November 12, 2014 1:40 PM
  • Hello ,

    You can see the article :Migrate TFS2010 to TFS2013


    Ahsan Kabir Please remember to click Mark as Answer and Vote as Helpful on posts that help you. This can be beneficial to other community members reading the thread. http://www.aktechforum.blogspot.com/

    Monday, December 22, 2014 6:45 PM
  • Code are stored in Database. As you restored all your database so your code must be there.
    Thursday, June 11, 2015 9:04 PM