After you restore backups to a TFS Instance, what else needs to be done?
It’s quite possible many may have not had a situation to restore backups of TFS databases taken few days or even a day ago on their production server and bring it to live.
Scenarios:
1. To gain access to some of the deleted artifacts and continue from there
2. Some corruption or unwanted change that happened so a roll back is necessary to reach the last known good working state
In such scenario’s restoration of TFS databases alone will not help bringing a working TFS instance back in full working state, Following additional steps must be done, else users will face cache corruption issues and unpredictable behaviour during merge, Work Item tracking etc.
1. Clearing Version control cache
The cache folder is located in the TFS server in the following location:
TFS 2005
\Program Files\Microsoft Visual Studio 2005 Team Foundation Server\Web Services\VersionControl\Data.
TFS2008
\Program Files\Microsoft Visual Studio 2008 Team Foundation Server\Web Services\VersionControl\Data
TFS2010
%programfiles%\Microsoft Team Foundation Server 2010\Version Control Proxy\Web Services\VersionControlProxy\Data
TFS2012
%programfiles%\Microsoft Team Foundation Server 11.0\Version Control Proxy\Web Services\VersionControlProxy\Data
TFS2013
%programfiles%\Microsoft Team Foundation Server 12.0\Version Control Proxy\Web Services\VersionControlProxy\Data
2. There is one another cache folder that needs to be deleted
C:\ProgramData\Microsoft\Team Foundation\Web Access
Clear the cache folders under this path and perform an IISreset
3. User cache folders to be cleared for all the users
C:\Users\ {your account} \AppData\Local\Microsoft\Team Foundation\<version no’s 1.0-5.0>\Cache
Clear all the files and folders under this path
4. MTM cache
C:\Users\<alias>\AppData\Local\Microsoft\TeamTest\v12.0
(versions differ perMTM version you are using)
Clear all the files and folders under this path.
Cheers!
Content created by – Vimal Thiagaraj