TFS 2010 Backup and restoration proceedure - tfs

Following are the scenario in my environment
I have a tfs 2010 server which is running fine and i have schedule the backup for WSS_AdminContent,WSS_Config, Tfs_Warehouse,Tfs_Configuration. and one project which is created in tfs. Now i want to restore this TFS 2010 in my test environment.
I am in need of how do i proceed for the same and how can i restore my production environment in test environment.SO that if my production server is down i will be able to restore all projects in TFS 2010.
Thanks and Regards
Avinash Udawant
System Admin.

You'll also need to backup other databases, including project collection databases and more. Follow the MSDN guidance in order to make sure you get all the steps right for backing up and restoring TFS.

Related

Upgrading to TFS 2015 - copying a project

HELP!!
I'm learning on the fly here with no training whatsoever! I'm a system administrator who is responsible for supporting the developers. They use Visual Studio, TFS, Plastic SCM and TeamCity amongst other tools.
My task was to get TFS 2015 and SQL Server 2014 installed on a new VM. This I have done but my biggest task now is setting up TFS which seems complicated.
For your information, The developers use TFS 2012 as a Kanban board.
Can anyone point me in the right direction to documentation that simply explains how to copy a project from one collection to another? I'm reluctant to move the project to the new version of TFS without testing the current project.
Thanks in advance.
You cannot copy a single project, there is the TFS integration platform, but it sucks and doesn't officially support TFS 2015
I would say your best bet is to follow the following steps.
In TFS 2012, detach the collection using the TFS Admin Console.
Backup the collection database in SQL server
Copy the backup to the new SQL server
Restore the Database
In the TFS Admin Console in TFS 2015, attach the collection
Wait for TFS to update the Database Schema.
You should now have the full team project collection available in the new server.

How can I use the TFS Power Tools Backup/Restore feature to restore an entire TFS installation from one server to another

I have TFS 2010 on an existing server and want to move it to a new server. I would like to keep all of my collations intact and make the move as smooth as possible. I would also like to use the Power Tools backup/restore feature to do this. I have backups now in a network location so how can I reliably restore these onto my newly installed and patched TFS 2010 box (with no configuration)?
Moving a TFS instance to a new server is a delicate procedure. The TFS Configuration database contains a lot of URI's, service accounts and other important information.
You can quickly restore a TFS backup to the same server, without issues. To actually move to different hardware or a clean installation, follow the following (lengthy) procedure. You can use your existing backups.
+1 for #jessehouwing
But if you have the same URI's, you can do the following
After you back up TFS 2010 using TFS Power Tools 2011, then you restored the TFS 2010 back up to another SQL Server or instance, or restored in the original SQL Server which your TFS 2010 configured?
If you want backup TFS 2010 using TFS Power Tools and restore to the original SQL Server, please refer to the detailed steps in this article: http://myalmblog.com/2010/09/12/tfs-2010-power-tools-tfs-backup-and-restore-hands-on-lab/.
If you want to backup TFS 2010 and restore to another SQL Server or instance, after restore TFS 2010 database on the new SQL Server, you need to configure the new SQL Server for your TFS 2010, please refer to the detailed steps in this document: http://msdn.microsoft.com/en-us/library/ms252516.aspx.

TFS 2010 source control backup/restore

Is there a way to backup just the source control component of a team project and restore it into a different TFS server? We setup a TFS 2010 server for RND, but decided to use it's source control manager for a development project. We did this so the developers can learn how to work with it before we use it on a much bigger project. Now, we need to blow away the server since it is a VM for RND. We're going to setup a new TFS server for production. I don't want to lose the source code history.
Yes, you can use the TFS Integration Tools to migrate source with history for one or more Team Projects to another server. It is very easy to use.
TFS Integration Tools Download
I hope this helps
Mike
Use the features built into the product. In Dev10, collections were added so artifacts (including source) would be portable between TFS servers - leverage that. Pilot projects were a key scenario for portable artifacts and a justification for collections.
Dettach the collection from the VM TFS instance. It's available from the collection node of the admin console.
Backup the database from the database you dettached.
Deploy the new real server (non-VM).
Restore that collection database to the sql server used for the production instance.
Using the administration console collections node, attach the collection to the newly deployed TFS server.
Now you have the source available from the prototype period and you have a new production collection available for the new production instance.
BTW, in Dev 11 (you can get build conference CTP or beta soon) TFS upgrades the collection on attach so if you deploy a Dev11 TFS server, you can attach that prototype collection and pull it forward.

How to change Data Tier(Sql Instance) in TFS

I have just installed TFS Server 2010 but during installation I selected SqlExpress as my data tier. Both my TFS application server and database exists on the same box. I also have full enterprise Sql Server edition on the samebox and now want to use the same rather than SqlExpress.
In TFS administration console, I found no way to change my data tier. I haven't created any project as such on TFS so there is no data to migrate. I just want to use my default instance now.
How to go about this ?
FROM https://msdn.microsoft.com/en-us/library/ms404869(v=vs.120).aspx
In order to restore the TFS databases using the restore tool, you must install but not configure TFS on the new data-tier server, and then use the restore function in the Scheduled Backups node.
Install TFS and cancel the setup TFS setup window once it opens. Or in my case I used the Uninstall Application tier option in the TFS Admin Tool. I didn't know you could cancel the application tier install. The wizard kind of forces you into it. Then I had to rename\delete the configuration db and any others that were created in the install.
I had to do this today for a TFS 2018 and found the below article useful. May not fit everyone's scenario but sharing since this SO link came on top of search results.
Run
TfsRestore.exe
in the C:\Program Files\Microsoft Team Foundation Server 14.0\Tools
folder. It has a GUI.
https://learn.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2012/jj620932(v=vs.110)
At this early point, you might as well just uninstall and reinstall. That's probably the easiest method.

What's a Backup and Recovery Process for Team Foundation Server 2010?

We have a new installation of TFS 2010 (on SQL Server 2008), and I'm planning the backup and recovery process.
It seems the configuration information and data is stored in the Tfs_Configuration and Tfs_DefaultCollection databases (and additional Tfs_[CollectionName] dbs if you have more than one collection). In a test setup, I tried backing up the two dbs, uninstalling TFS, then reinstalling (thinking I could then hook the databases up at some point in the install process). This is where I'm confused. I don't see an option or clear guidance on how this is suppose to work.
If you have backed up your TFS 2010 databases and lose your TFS server, you can restore it by restoring all of your TFS databases, reinstalling TFS, and selecting the Application Tier option of the installation wizard. Once you point the wizard at your database, it will recognize the Tfs_Configuration database from the previous installation and restore your previous configuration as well as your collections.
Download the TFS Power tools and use the backup tool (it's even got a nice GUI)!
There seems to be a MSDN section on this topic: http://msdn.microsoft.com/en-us/library/bb552295.aspx

Resources