TFS Express backup and restore



When we setup source control server, we should always make a backup and restore plan for it. This article is to describe how to backup and restore a TFS Express instance from one server to another server.

This blog is an English version, for Chinese version please check below URL:

http://www.cnblogs.com/aspnetx/p/4579233.html

Below is the key points for the backup and restore.

Steps:

  • Backup database
  • Install another TFS Express instance and finish config
  • Restore backup database to new server.
  • If needed, install ASP.NET MVC 4
  • Change application instance ID

First, we should create a backup plan, open Team Foundation Server Express Administration Console, then click Scheduled Backups.

Create a backup plan, fill a network backup path, and please note the local path is not allowed, only share folder is accepted.

Then set the schedule for the backup plan, by default, always Sunday for a full backup and working day for differential backup, then apply transitional backup interval by minutes.

Then the wizard will applied the job setting.

After the setting finish, it is suggested to run a full backup immediately, close the backup setup, click "Take Full Backup Now" to start a full backup, later the differential backup and transitional backup will be based on this.

Go to the backup folder, you can see the backup files. Two databases which are supported TFS Express running will be backup by default, if you only have one collection, one is Tfs_Configuration, the other one is Tfs_DefaultCollection.

The backup is finished so far, below phase is how to restore the instance.

After install the TFS Express on another server, and finish the basic configuration, open the SQL Express using Management Studio, restore them one by one.

And what we should pay attention is the IIS, sometimes ASP.NET MVC will be lost(Browse TFS web page, error message reported: System.web.mvc is lost), when this happens, go to below asp.net official web site to download ASP.NET MVC 4, please note the version
is 4, as-is latest version is already 5.

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

After the ASP.NET MVC 4 is installed, the last step is sync the application ID, the value is stored in web.config, copy the value from source server, and then replace it into the new server.

Then open the TFS web site, you will see the whole resource are migrated from the old server to new server, including source code, and task items.

时间: 2024-10-14 19:44:40

TFS Express backup and restore的相关文章

[BI项目记]-TFS Express备份和恢复

在项目中对TFS进行备份操作是日常重要的工作之一,此篇主要描述如何对TFS Express进行备份,并且在另外一台服务器上进行恢复. 以下是操作的几个关键点: 备份数据库,在TFS管理工具中就可以完成. 在另外一台服务器中安装TFS Express,然后完成基本配置. 恢复备份的数据库到新服务器上. 有时候需要安装ASP.NET MVC 4. 更改目标服务器的Application ID,使其和原始服务器一样. 首先对于数据库的备份,由于是SQL Server Express的版本,通常不会有M

Backup and restore of FAST Search for SharePoint 2010

一个同事问我一个问题: 如果FAST Search for SharePoint 2010被full restore到了一个之前的时间点, 那么当FAST Search重新开始一个增量爬网的时候, 会发生什么? FAST Search会查看内容数据库并发现上一次爬网的记录并为新item或更改的item制作索引么? FAST Search会发现索引与现在内容的不一致么? 还是说它直接会再来一次full crawl?   Some Basics =================== Fast Se

How to backup and restore database in SQL Server

/*By Dylan SUN*/ If you want to backup and restore one database in SQL Server. Firstly, create a shared folder, and add everyone with read/write right. Secondly, backup your database. You can use the following script : backup database DatabaseName to

第一章、关于SQL Server数据库的备份和还原(sp_addumpdevice、backup、Restore)

在sql server数据库中,备份和还原都只能在服务器上进行,备份的数据文件在服务器上,还原的数据文件也只能在服务器上,当在非服务器的机器上启动sql server客户端的时候,也可以通过该客户端来备份和还原数据库,但是这种操作实质是在服务器上进行的,备份的数据文件在服务器上,还原的数据文件也只能在服务器上,这个原则不会变,只是使用了客户端的一个工具来操作这个过程而已. 1.1.备份数据库 备份数据库有两种方式: 第一种是在企业管理器中,利用工具对数据库进行备份,这种备份的文件只会有一个,即以

SQL2005中使用backup、restore来备份和恢复数据库

在SQL2005数据库中利用SQL语句进行数据备份与还原: 备份backup:backup database 数据库名称 tO disk = 备份路径例:BACKUP DATABASE test TO disk = 'd:\bak\test.bak' 恢复restore:restore  database 数据库名称from disk = 备份路径例:RESTORE DATABASE test FROM disk = 'd:\bak\test.bak'

Experience on Namenode backup and restore --- checkpoint

Hadoop version: Hadoop 2.2.0.2.0.6.0-0009 Well, We can do this by building Secondary Namenode, Checkpoint node or Backup node. Example: Assuming you have a Secondary Namenode. 1. Check secondary namenode checkpoint status: dfs.namenode.secondary.http

mongodb backup and restore

一.mongodb的冷备 mongodb的冷备就是:复制库的相关文件.因此在冷备前,要关闭服务器,本全中使用平滑关闭server的命令. >use admin >db.shutdownServer() 或者可以通过fsync方式使MongoDB将数据写入缓存中,然后再复制备份 >use admin >db.runCommand({"fsync":1,"lock":1}) 锁库后执行插入数据命令,发现无任何反应.备份完后,要解锁(防止这个时候停

GPO - Backup and Restore

Backup the GPO to a second server is very important. Restore a GPO if necessary. Note: WMI filter and Links need to be re-configured after restoration. 原文地址:https://www.cnblogs.com/keepmoving1113/p/12246893.html

suitecrm 如何backup and restore ,从一个server 转移到另一个 server . 并保证customer package , customer module 不丢

原server部分 1 :  suite backup 分为 数据库和 网站 两部分 , 在 网站目录下 config.php , 可以看到 数据库名字 等信息 . 在 /home 目录下 , 新建 liuyang 目录 ---   mkdir liuyang 给予写权限 ---  sudo chmod -R a+rw /home/liuyang 2 :登陆 suitecrm 网站 ,admin----backup 到刚才的目录 3 : 备份数据库   先登陆 : mysql -u root -