完全存档TFS2012项目 [英] completely archive a TFS2012 project

查看:63
本文介绍了完全存档TFS2012项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在TFS 2012中,完全归档TFS项目的最佳实践是什么?我们的TFS数据库已经变得非常庞大,我们需要开始归档(但是我们当然不希望丢失任何内容).

我想从TFS服务器中获取一个废弃的项目,并将其所有文件及其历史,工作项和构建定义完全备份到外部驱动器,然后从中删除所有这些TFS服务器.

如果需要重新启动一个废弃的项目,我想将该驱动器带回TFS服务器,以恢复该项目(及其所有文件及其历史,工作项,构建定义和共享站点),即使原始集合也是如此.并且即使在此期间我们已经升级到更新版本的TFS,该项目的用户也不再存在,并且理想情况下是不存在的.

Microsoft在TFS中处理这种情况的想法是什么?

解决方案

这确实很难执行,但是官方的方法是拆分项目集合,然后分离包含要归档项目的项目.

为此,请克隆项目集合,从原始文件中删除要存档的项目,从克隆中删除要保留的所有项目,然后分离克隆以进行存储.

当您需要对旧项目进行补水时,可以将其附加为新的项目集合,拆分之后很难将其合并回旧项目集合中.

在MSDN上解释了拆分过程./p>

或者,您可以使用 Team Foundation Server集成工具/平台将项目同步到干净的团队项目并备份.您还可以使用这些工具将项目重新集成到旧的项目集合中.

重要提示

由于构建定义链接到项目集合而不是项目,所以备份/还原这些并不是很简单.在执行还原过程时,可能还需要重新创建任何实验室管理设置.

此外,任何在团队项目之间链接或在团队项目之间进行分支/合并的工作项链接都将通过此过程断开连接.

In TFS 2012 what is the best practice to fully archive a TFS project? Our TFS database has gotten ridiculously large and we need to start archiving things (but of course we do not want to loose anything).

I would like to take an abandoned project form the TFS server and completely back it up to an external drive with all its files and its history, workitems and build definitions and then remove all of that from the TFS server.

If an abandoned project needs to be reactivated, I would like to bring that drive to the TFS server an restore that project ( with all its files and its history, workitems, build definitions and sharpoint sites), even if the original collection and the users of that project do not exist anymore and ideally even if we have upgraded to a newer version of TFS in the meantime.

What is Microsoft's idea to deal with such a scenario in TFS?

解决方案

This is a really hard to execute scenario, but the official way is to split the project collection and then detach the one containing the items to be archived.

To do so, clone the project collection, remove the project you want to archive from the original, remove all projects you want to keep from the clone, then detach the clone for storage.

When you need to rehydrate the old project, you can attach it as a new project collection, it's really hard to merge it back into the old project collection after the split.

The procedure for splitting is explained on MSDN.

Alternatively you can use the Team Foundation Server Integration Tools/Platform to sync the project to a clean team project and backup that. You can also use these tools to re-integrate the project into the old project collection.

Important note

Since Build Definitions are linked to a Project Collection, not a Project, it's not really straightforward to backup/restore those. Any Lab Management settings might also need to be re-created when doing a restore procedure.

Also, any work item links that link across Team Projects, or branch/merges across team projects will get disconnected with this procedure.

这篇关于完全存档TFS2012项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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