从 TFS 备份中删除工作区并构建控制器设置
有两个 TFS 服务器。我们需要将数据从第一台服务器移动到第二台服务器。我们需要将所有数据移至其他工作区并构建控制器设置。但是,如果要备份第一个 TFS 服务器,那么它也包含这些数据......
是否有某种方法可以从 TFS 备份中删除工作区并构建控制器设置(在将其恢复到第二个服务器之前)?
感谢 Richard,我将具体说明这个问题:是否有人设法找到一组 sql 命令,用于从备份数据库(是的,TFS2010)中删除有关工作区的数据并构建控制器设置,并且不会破坏任何内容?
There are two TFS servers. We need to move data from first server to second server. We need to move all data else workspaces and build controller settings. But if to do backup of first TFS server, then it contains these data too....
Is there some way to remove workspaces and build controller settings from TFS backup (before it will be restored to second server)?
Thanks to Richard, I will specify the question: did somebody manage to find the set of sql commands for to delete from backup database (yes, TFS2010) the data about workspaces and build controller settings and break nothing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不幸的是,我相当有信心答案是否定的。TFS
备份(包括在另一台服务器上恢复的备份)位于数据库级别,这是保存所有状态的地方。要仅移动部分数据,需要仅移动数据库的部分1。
很可能使用命令行枚举和删除工作区(请参阅
tfworkspace/delete
) 从具有足够访问权限的帐户中删除其他用户。1 或者数据库正在使用 TFS 2005 或 2008。
I'm fairly confident that the answer is, unfortunately, No.
TFS backup (including backup to restore on another server) is at the database level, and that is where all the state is held. To move only part of the data would require moving only part of the database1.
It is quite possible to use the command line to enumerate and delete workspaces (see
tf workspace /delete
) of other users from account with sufficient access.1 Or database*s* is using TFS 2005 or 2008.
备份您的第一个 TFS。然后删除所有工作区和尝试强制执行默认的构建配置。然后进行第二个备份。
将此第二个备份恢复到您的第二个 TFS。然后恢复第一个 TFS 中的第一个备份。
我从来没有做过这样的事情,但如果我处在你的位置,我会研究如何做。另一种选择:
需要真正的TFS功夫大师来表演。
Make a backup of your first TFS. Then delete all workspaces & try to enforce default Build configuration. Then make a second backup.
Restore this second backup to your second TFS. Then restore the first backup in your first TFS.
I have never done such actions, but I would research on how to do them if I was in your place. The alternative:
would require a true TFS Kung Fu master to perform.