How to completely delete TFS backup plan - tfs

TFS backup plan has become corrupt. When I try to recreate the backup plan I get "Object reference not set to an instance of an object." How do I completely delete the backup plan and start from scratch? I am using TFS 2010 with Power Tools.

Related

How does manual backup/restore of TFS server work?

I setup TFS 2013 Express on my dev PC.
The only backup method that I can do is a manual backup.
These are the steps that I did:
I backed up the TFS Team Project DB and the TFS Configuration DB.
I added a comment to my code and checked it in.
I restored the backup db's from step one using TFSRestore.exe
I deleted the source code from my PC and did a get latest.
I noticed that my comment from step 2 was still present.
When I restore a TFS database shouldn't I loose the changes that were made after the given backup?
EDIT:
I ran a second test and this time I made sure:
I still had the same results.
When you backup database, make sure you have stopped the team project collection.
Also, before restore, try to delete existing database that will restore.

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.

Backing up TFS manually because TFS/Sharepoint Integration is hosed

After an ill-advised DCPROMO on our TFS server, and subsequent demotion, TFS continues to work but the SharePoint integration is totally hosed. SharePoint app pool refuses to run as a "Network Service" and so does SQLEXPRESS service. Unless there is some way to fix this, which I have not been able to find, I would like to totally re-install Windows Server 08 and TFS on our server. However, while trying to create a backup plan, I received an error relating to the fact that TFS cannot access MS SQL because of permissions issues. I would like to reliably and manually back up all TFS source control/history (I'm not worried about SP stuff at all, we haven't used it yet) and then restore it after I've re-installed stuff. Is this possible?
If you haven't really used ssrs/sharepoint etc you should be able to fairly easily detach any project collections and just migrate their databases to the new server. Each project collection only has one database normally named Tfs_{CollectionName}. The move the database to the new server with TFS already installed on it, restore the databases and attach them in the management console. http://msdn.microsoft.com/en-us/library/dd936138.aspx
Otherwise the recent versions of the TFS Server Power Tools have added a backup tab to the TFS management console which should be able to run you through making a backup. http://blog.hinshelwood.com/creating-a-backup-in-team-foundation-server-2010-using-the-power-tools/

TFS 2010 Cannot Create Backup Plan

I have recently moved our TFS 2010 server to new server, I'm trying to create a backup plan but TFS tells me that A backup plan already exists for this Tfs configuration.
How can I overwright the existing backup plan?
Any Ideas?
This is an intresting one. The tool has a feature to prevent multiple backup plans from being created for the same TFS databases (because they might interfere). It works by setting an extended attribute in the TFS Configuration SQL database (called TFS_BACKUP_PLAN_CONTROLLER) that identifies a configured backup plan. You can't configure another backup plan from a different machine. To do it, you will need to delete this extended attribute using SQL Server Management Studio.
You can use the following command to delete the attribute by,
Use Tfs_Configuration
EXEC sp_dropextendedproperty #name = 'TFS_BACKUP_PLAN_CONTROLLER'
HTH.
Cheers, Tarun

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