[Bi Project Kee]-tfs Express Backup and Recovery

Source: Internet
Author: User
Tags management studio sql server express

Backing up TFS in a project is one of the daily important tasks, and this article mainly describes how to back up TFS Express and restore it on another server.

Here are a few key points of the operation:

    • Back up the database, which you can do in TFS administration tools.
    • Install TFS Express on a different server, and then complete the basic configuration.
    • Restore the backed up database to the new server.
    • Sometimes you need to install ASP. NET MVC 4.
    • Change the application ID of the destination server to be the same as the original server.

The first backup of the database, because it is a version of SQL Server Express, usually does not have Management Studio support, here you can use the friendly TFS comes with tools. In team Foundation Server Express Administration Console, locate the scheduled backups entry.

Create a backup plan, first specify a network path, you need to note that the local path is not allowed, must be the kind of network share path. Another parameter is also important, that is, how long the backup is retained, it is recommended to set a time of more than 7 days.

Then set the backup cycle, which is recommended by default, Sunday for a full-scale backup, a differential backup on weekdays, and then a log backup every few minutes. (This tool is much more useful than the SQL Server maintenance plan)

Clicking the next Configuration tool will start working and generate the corresponding job script.

Once setup is complete, it is recommended that you run a full-scale backup immediately, without waiting until Sunday, go back to the console and click Take full backup now to make a complete copy immediately so that subsequent differential backups and log backups can be made.

Open the backup file directory, you can see the saved database backup file, by default, if you only have a default collection, then you can see two database backup, TFS_Configuration and Tfs_defaultcollection.

The backup work is all done here, and next shows how to restore a TFS Express instance.

First, complete the installation of TFS Express and complete the basic configuration. Then use Management Studio to connect to an instance of SQL Express and restore each database in turn.

In fact, the system tool comes with a restore option, but because of the problem with the application ID, there is no demo.

Sometimes it is possible to find that the Web page of TFS cannot be opened, and if the system has been reported SYSTEM.WEB.MVC errors, this may be due to the installation of ASP. NET MVC was unsuccessful during the installation of TFS Express, so it needs to be installed manually. The version that needs attention here is the version of TFS Express 2012 that uses ASP. NET MVC version 4, as of the article release, the latest version is already 5. The download of ASP. NET MVC 4 can be found at the following URL.

https://www.microsoft.com/en-us/download/details.aspx?id=30683

After the installation of ASP. NET MVC 4 is completed, the final step is to synchronize the application ID of the TFS site, which is configured in Web. config and synchronizes it from the original server to the target server.

Now that the TFS Express recovery is complete, opening the TFS site allows you to see that all source code and work items have been restored to the new server.

[Bi Project Kee]-tfs Express Backup and Recovery

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.