Search code examples
tfstfs-2015tfs-migration

Tfs database restore in QA instance


Here is the setup I have.... a tfs production server tfs 2015 and a QA server tfs 2015. No one uses QA instance of tfs and the database had not been updated for 6 months.

I would like to update the QA tfs database to production database. When I try restore database, ending up with errors on database conflicts.

How to maintain a replica of production database in QA tfs instance?.

Thanks in advance!!


Solution

  • You need to reset your TFS instance before you can setup the new one. To do that first call "tfconfig setup /uninstall:all".

    This will reset your TFS to its unconfigured state. Then you need to delete all of the databases; config, collections, reporting, cube.

    Then initiate the restore using the "Restore" option on the start menu.

    Make sure that you run "tfconfig changeserverid" before you reconfigure TFS on the new restore or you will have conflicts with production