gpt4 book ai didi

tfs - 从 TFS 2008 迁移到 TFS 2010

转载 作者:行者123 更新时间:2023-12-04 21:17:27 30 4
gpt4 key购买 nike

我们已经成功构建了 TFS 2010 基础架构和第一个使用 Visual Studio 2010 的虚拟机。现在我有一个非常简单的问题。如何将解决方案从我们现有的 TFS 2008 转移到新的 2010?TFS 中是否包含任何工具?

最佳答案

首先,我建议您从原始 TFS 2008 数据层服务器备份您的 TFS 数据库:

BACKUP DATABASE TfsActivityLogging
TO disk = 'C:\TFS 2008 Upgrade.bak'
WITH INIT
BACKUP DATABASE TfsBuild
TO disk = 'C:\TFS 2008 Upgrade.bak'
BACKUP DATABASE TfsIntegration
TO disk = 'C:\TFS 2008 Upgrade.bak'
BACKUP DATABASE TfsVersionControl
TO disk = 'C:\TFS 2008 Upgrade.bak'
BACKUP DATABASE TfsWorkItemTracking
TO disk = 'C:\TFS 2008 Upgrade.bak'
BACKUP DATABASE TfsWorkItemTrackingAttachments
TO disk = 'C:\TFS 2008 Upgrade.bak'

然后将备份文件移动到新服务器,并恢复它们:

RESTORE DATABASE TfsActivityLogging
FROM Disk = 'C:\TFS 2008 Upgrade.bak'
WITH RECOVERY,
REPLACE,
FILE = 1,
MOVE 'TfsActivityLogging' to '< DataFileLocation>\TfsActivityLogging.mdf',
MOVE 'TfsActivityLogging_log' to '< LogFileLocation>\TfsActivityLogging_log.ldf'
RESTORE DATABASE TfsBuild
FROM Disk = 'C:\TFS 2008 Upgrade.bak'
WITH RECOVERY,
REPLACE,
FILE = 2,
MOVE 'TfsBuild' to '< DataFileLocation>\TfsBuild.mdf',
MOVE 'TfsBuild_log' to '< LogFileLocation>\TfsBuild_log.ldf'
RESTORE DATABASE TfsIntegration
FROM Disk = 'C:\TFS 2008 Upgrade.bak'
WITH RECOVERY,
REPLACE,
FILE = 3,
MOVE 'TfsIntegration' to '< DataFileLocation>\TfsIntegration.mdf',
MOVE 'TfsIntegration_log' to '< LogFileLocation>\TfsIntegration_log.ldf'
RESTORE DATABASE TfsVersionControl
FROM Disk = 'C:\TFS 2008 Upgrade.bak'
WITH RECOVERY,
REPLACE,
FILE = 4,
MOVE 'TfsVersionControl' to '< DataFileLocation>\Tfs_< TeamProjectCollectionName>.mdf',
MOVE 'TfsVersionControl_log' to '< LogFileLocation>\Tfs_< TeamProjectCollectionName>_log.ldf'
RESTORE DATABASE TfsWorkItemTracking
FROM Disk = 'C:\TFS 2008 Upgrade.bak'
WITH RECOVERY,
REPLACE,
FILE = 5,
MOVE 'TfsWorkItemTracking' to '< DataFileLocation>\TfsWorkItemTracking.mdf',
MOVE 'TfsWorkItemTracking_log' to '< LogFileLocation>\TfsWorkItemTracking_log.ldf'
RESTORE DATABASE TfsWorkItemTrackingAttachments
FROM Disk = 'C:\TFS 2008 Upgrade.bak'
WITH RECOVERY,
REPLACE,
FILE = 6,
MOVE 'TfsWorkItemTrackingAttachments' to '< DataFileLocation>\TfsWorkItemTrackingAttachments.mdf',
MOVE 'TfsWorkItemTrackingAttachments_log' to '< LogFileLocation>\TfsWorkItemTrackingAttachments_log.ldf'

然后,在新服务器上,运行导入命令:

"C:\Program Files\Microsoft Team Foundation Server 2010\Tools\tfsconfig.exe" import /sqlinstance:server078.live01.lan.local /collectionName:< TeamProjectCollectionName> /confirmed

然后你应该准备好了。 :)

关于tfs - 从 TFS 2008 迁移到 TFS 2010,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3045349/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com