TFS 2017:在同一 TFS 服务器上克隆/复制集合 [英] TFS 2017 : Clone/Copy a Collection on the Same TFS Server

查看:25
本文介绍了TFS 2017:在同一 TFS 服务器上克隆/复制集合的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在同一 TFS 服务器上创建我们生产集合的克隆/副本,以用作沙箱/开发环境.恢复集合的备份并重命名它很容易,但我知道当我尝试附加集合时会出现 GUID 冲突(可能还有其他冲突).

I would like to create a clone/copy of our production Collection on the same TFS Server to use as a sandbox/dev environment. Restoring a backup of the Collection and renaming it is easy enough, but I know there will be GUID conflicts (and probably other conflicts as well) when I try to attach the Collection.

反正有这个吗?还是我只需要购买带有单独 TFS 实例的新服务器?

Is there anyway around this? Or do I just need to procure a new server with a separate TFS instance?

提前致谢!

推荐答案

一般答案是否定的.

但是如果两个集合不是同时在线/附加也是可能的.

But it is possible if not both collection are online/attach at the same time.

在第二种情况下,请执行以下步骤:

In the 2nd case do the following steps:

  1. 在 TFS 管理控制台中分离集合

  1. detach collection in TFS Admin Console

进行 SQL Fullbackup

take a SQL Fullbackup

使用不同的数据库名称恢复 SQL 备份

restore SQL Backup with a different database name

重新附加原始集合 TFS 管理控制台

re-attach the original collection TFS Admin Console

在 TFS 管理控制台中附加复制的集合并为其指定不同的集合名称

attach the copied collection in TFS Admin Console and give it a different collection name

您将收到一条警告,指出集合与团队项目 ID 冲突并且集合保持离线.

You'll get an warning that the collection conflicts Team Project ID and the collection stays offline.

如果您想将复制的馆藏带到网上,您需要先将原始馆藏脱机,然后才能在线上复制.

if you want take the copied collection online you need to take original collection offline first than you can take the copy online.

如果您希望两个集合都能工作,则必须安装具有单独 TFS 实例的新服务器.然后移动团队项目集合 到新的 TFS 实例.

If you want both collections work, you have to install a new server with a separate TFS instance. Then Move the team project collection to the new TFS instance.

这篇关于TFS 2017:在同一 TFS 服务器上克隆/复制集合的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆