简体   繁体   English

TFS 2014中的TFS 2012备份数据库还原

[英]TFS 2012 backup database restore in TFS 2014

I had TFS 2012 and I wanted to upgrade it to 2015. According to the MSDN website this shouldn't be a problem, except when I do it (...) 我有TFS 2012,我想将其升级到2015。根据MSDN网站,这应该不是问题,除非我这样做(...)

Before I started I made backups of the configuration database and the project collections. 在开始之前,我对配置数据库和项目集合进行了备份。 I downloaded TFS 2015 and executed the setup, allowing the setup to upgrade my 2012. It resulted in an error and I lost everything (except for the backups of course). 我下载了TFS 2015并执行了安装程序,从而允许安装程序升级我的2012年。这导致了错误,我丢失了所有内容(当然,备份除外)。

I didn't panic at all and thought: I will remove 2015, reinstall 2012 again and put back the backups. 我一点也不惊慌,我想:我将删除2015年,再次重新安装2012年并放回备份。 Good thinking, right? 好主意吧? Except for the point that I ran SQL 2014 and the installation of TFS 2012 does not allow SQL 2014 (What the... ?). 除了我运行SQL 2014和安装TFS 2012的要点外,不允许使用SQL 2014(这是什么?)。

(Re)installing SQL 2012 had no point either, since the backups where made in 2014. (重新)安装SQL 2012也没有意义,因为备份是在2014年进行的。

Still no panic... 仍然没有惊慌...

Next thing I tried was to reinstall SQL 2014 and TFS 2015. Setup the collection I needed and tried to restore the backed up database... The only thing I saw were errors. 接下来,我尝试重新安装SQL 2014和TFS2015。设置所需的集合并尝试还原备份的数据库...我唯一看到的是错误。 Atleast I tried, right? 我尝试过Atleast,对吗?

So, here I am... A little panic has submerged now. 所以,我在这里...有点恐慌已经淹没了。

Is there any way to get all the information stored in the back (SQL 2014 database for TFS 2012) to my TFS 2014 environment? 有什么办法可以将存储在后台(用于TFS 2012的SQL 2014数据库)中的所有信息获取到我的TFS 2014环境中?

You need to restore the backed up database first. 您需要首先还原备份的数据库。 Then configure TFS2015 associate with SQL2014. 然后将TFS2015与SQL2014关联。 You should use the upgrade option in Team Foundation Server Configuration Center to achieve it. 您应该使用Team Foundation Server配置中心中的升级选项来实现。

If you get errors during the upgrade, please provide the detail info of those errors and which step you are stuck in. 如果您在升级过程中遇到错误,请提供这些错误的详细信息以及您所处的步骤。

Still easier, install tfs 2015 freshly pointing to a empty fresh sql 2015 installation. 仍然更容易,重新安装tfs 2015,指向空的新鲜sql 2015安装。 After completion, restore the collection dbs only on sql 2014. dont restore tfs_configuration. 完成后,仅在sql 2014上还原集合数据库。不要还原tfs_configuration。

hope u detached them in 2012 , before backing up. 希望您在备份​​前于2012年将其拆下。 Now go to tfs 2015 admin console and attach collection menu. 现在转到tfs 2015管理控制台并附加收藏菜单。 If the db appears, it was detachedand restored properly. 如果数据库出现,则表明它已分离并正确还原。 Attach the collectiondbs one by one. 一个一个地附加collectiondbs。 Else u have to run tfsconfig / repair in 2012. 否则,您必须在2012年运行tfsconfig / repair。

This question is almost the same as: Copy TFS 2012 collection to another server with TFS 2015 Installed 该问题与以下问题几乎相同: 将TFS 2012集合复制到安装了TFS 2015的另一台服务器上

Follow the same steps but skip the reattach step for the original collection. 遵循相同的步骤,但是跳过原始集合的重新附加步骤。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM