Recover project added in tfs after TFS 11.0 (2012) server crash - visual-studio-2012

I am using Team foundation server 2021. I do take backup of all TFS databases regularly. So now in case of disaster recovery (in case full machine gets crash) how can i use this backup to recover TFS and all collection etc. I want easy and the best approach .
I have seen so many articles in microsoft website but nothing is really so helpful and difficult to understand. So please suggest a better tutorial or procedure to do it

I guess that you have TFS2012 Update 1 (there is no 2011 version). You should upgrade to TFS2012.2 which has the Scheduled Backups feature included.

When taking a backup of a running TFS instance always backup all databases. In cases of a disaster situation the only way to recover, is to restore all databases and re-run the TFS Application Tier install.
There is ample guidance available, plus the Backup tool that was introduced in the product with TFS 2012.2 is also available for older versions (2012 rtm and update 1) as part of the Team Foundation Power tools.
The guidance you should follow is that for either:
restore TFS to the same location (in case the server name for TFS and SQL remain teh same)
restore TFS to a new server (in case the server name for TFS or SQL has changed)

Related

How can I install Team Foundation Server 2010 without a DVD?

I have a client who has TFS 2010 and I need to setup my own installation on an Azure VM in order to do some testing, and help them migrate off of TFS 2010 to TFS 2015. However, I cant for the life of me seem to locate a setup .exe online for Team Foundation Server 2010. Is this still possible? Do I need a physical DVD?
The instructions here
https://www.microsoft.com/en-us/download/confirmation.aspx?id=24337
ask to use the physical DVD, but I dont have one.
According to this link https://social.msdn.microsoft.com/Forums/vstudio/en-US/56343ed9-6c0c-4c17-89d1-62b4bb3cf645/visual-studio-team-foundation-server-2010-setup-downloadable-link?forum=tfsbuild
Its available for MSDN subscribers, but I dont see any TFS versions below 2015 on MSDN download page.
I have found the service pack 1 install, but not the setup for the full product. can anyone help me locate a setup exe online so that I can get this running? Thank you in advance.
Seems you are installing TFS 2010 to simulate some existing environment and test configuration changes. However, there is not any setup.exe for TFS 2010 in official site for now.
It's unsupported and 8 years old. There have been five major releases since then. We encourage users move to newly version of TFS server. Either back up the TFS2010 database and do the move directly or use some other machine with DVD to install the TFS2010 ISO image for a test.

How to remove Sharepoint and Reporting Services from TFS 2013?

We’re running TFS 2013 Update 1 and I’m planning an upgrade to TFS 2015 Update 1.
We have both SharePoint and Reporting Services installed and configured for TFS that I like to remove, because nobody ever uses them.
So, do I simply uncheck both Reporting and SharePoint during the TFS 2015 upgrade wizard. Is this the best way to do it?
Or, do I un-configure Sharepoint and Reporting Services first from our TFS 2013 installation? If so, what are the steps to do so?
Environment:
Server computer A:
Application tier for TFS 2013 Update 1
Data tier: SQL Server 2012 SP 1 for the TFS databases, and Reporting Services databases
Sharepoint services (only for TFS)
Server computer B:
SQL Server 2008 R2 hosting the SharePoint databases.
You can do either.
I'd probably uninstall/disable first if you're really sure you don't want them in the future (check with all the teams that they're not storing docs in SharePoint as they will lose them). That way the backup will be smaller/faster when you backup before you upgrade (Make sure you take a backup!!).
It's simple enough to do, just fire up the TFS Administration Console.
Select Reporting, Edit (this will stop the jobs) and uncheck "Use Reporting". Click OK.
For SharePoint, click SharePoint Web Applications and under the top section, click Modify against your server connection and choose Remove.
Make sure you take a new backup at this stage and then you can start the upgrade.
Some things to consider:
Are you sure you want to do this in-place? You could clone the server to new hardware and test the upgrade first or perform a migration upgrade. It means less downtime in the event of something going pear shaped.
If your collection(s) are large, this is likely going to take a long time. The 2015 upgrade seems to be slower than previous upgrades due to all the schema changes.
Are you sticking with a single server? That's fine, but you won't need server B for SharePoint so you could move to a dual server TFS install if capacity is a problem (You'd need to upgrade the SQL version on server B to act as a data tier though)
I'm a couple years late, but this still popped up in a search result so worth mentioning - use cmd prompt to do this:
Navigate to %programfiles%\Microsoft Team Foundation Server %#%\Tools\, and type TfsConfig.exe setup /uninstall:SharePointExtensions . This will "unconfigure" the feature in your App Tier.

Upgrading separate Project Collection Database to new TFS Version

I have 2 TFS Servers, one running TFS 2012 and another 2013. I have to move one collection from the 2012 to the 2013 version, but when I backup and restore it in the appropriate SQL server and click on the Attach Collection button, the TFS says that it can't find any databases (project collections) to attach.
What steps do I need to take to upgrade this database to the newer version without interfering with the continuous work of the server?
An attach upgrade is not recommended and is far more risky than an instance upgrade. You should upgrade your TFS 2012 to TFS 2013 first and then move the collection by detaching it first. Without the detach the database week not be listed.
You can, accepting the risk, detach the 2012 database from TFS, then backup and restore the detached 2012. When you attach the system will perform an upgrade.
You have to detach the collection from TFS2012, backup the SQL database from SQL Server of TFS2012, restore the database to SQL Server of TFS2013 then attach the collection on TFS2013.

Synchronization between TFS 2008 and TFS 2010

I am in a situation where the corporation has just recently upgraded to TFS 2008. They have no intention of upgrading to TFS 2010 at this time. As a development group, we've moved to Visual Studio 2010 this week. As with any large corporation, we cannot get our own environment created to install TFS 2010. Steps on too many toes, and isn't corporate standard. Etc.
I want to take full advantage of the new testing features in relation to the new UI Testing and other features. This appears to require TFS 2010. So my "dream" is to do my daily work at the office and write tests, but at night, have my code synchronized with my TFS 2010 server at home and run automated builds with the full testing capabilities enabled.
So is there is best practice for this? I've read up on the Workspace theory and the binding issues that are involved and that sounds the biggest hurdle to overcome.
Possible Solution - Create two workspaces $/WorkProject and $/WorkProject-Mirror and use a custom application using FileSystemWatcher to kick off a job that synchronizes code changes and a custom rewrite of the bindings. Use job on work laptop and home machine to allow bi-directional binding.
Research to see if TFS Integration Platform will help with this
You are correct the new testing UI (Test Manager 2010) requires TFS 2010, you are also correct that you can use the TFS Integration Platform between a TFS2008 & TFS2010 server. Then use test manager on the 2010 server.
All the above should be easy, the tough part will be the bindings in the solution file. I would suggest you have a second one created that points to your TFS2010 server so that you can open the correct solution file for the correct environment without stepping on your co-workers toes.
I think the two workspace route is overkill, it's just a solution file you need.
I wonder if you could use a read-only account to perform a get from TFS2008 and then do a check-in to your TFS2010 with a more-privileged account. I'm sure those two things and a little clever PowerShell scripting could get you what you're looking for.
I would encourage you to write a second utility to monitor that this script continues to work and to notify you if it detects a failure or something.

Any problems upgrading TFS to 2008 if SharePoint already upgraded to 3.0?

I installed WSS 3.0 and pointed my TFS2005SP1 installation at it. I am planning my TFS 2008 upgrade. Everything I've read mentions migrating to WSS3.0 after the TFS upgrade.
Are there any gotchas I need to be aware of related to the WSS upgrade already having been performed?
I am in this same situation. I have TFS2008 sitting here ready to go. What I am ultimately thinking is that since Microsoft did put out official documentation on how to upgrade TFS2005 to use WSS3.0 (which I followed and worked perfectly), that the upgrade from TFS2005 to TFS2008 should go on without a hitch with WSS3.0 already in place.
I am still a bit nervous about it and your question is the first mention I have even been able to find online about this.
I had issues with the upgrade. It would always silently exit after entering the Reporting Services account information. The next page of the setup wizard is supposed to be SharePoint connection settings. When I upgraded, I did not replace the WSS 2.0 site but installed side-by-side and changed the SharePoint port settings in TFS config. I think this was the cause of the install failure.
I ended up building up a new virtual machine with the exact same specs, computer name, etc. I did not install TFS 2005, but restored the TFS 2005 databases and then ran the TFS 2008 installer. It detected and upgraded the 2005 databases and all is well.

Resources