有没有一种方法可以备份Visual Studio Team Services项目? [英] Is There A Way To Backup Visual Studio Team Services Projects?

查看:103
本文介绍了有没有一种方法可以备份Visual Studio Team Services项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我主张将Visual Studio Team Services用于我们的源代码控制解决方案,并且实际上已经开始这样做.但是,我的经理对云托管的存储和服务有些担心,他想知道如果出于任何原因而无法访问团队服务的情况下,我们的应急计划是什么.

I'm advocating using Visual Studio Team Services for our source control solution, and have actually started doing so. However, my manager, who is somewhat apprehensive when it comes to cloud-hosted storage and services, wants to know what our contingency plan is in the event of Team Services ceasing to be accessible for whatever reason.

我已经指出,我们在开发人员的计算机上,映射的工作区中拥有源代码,但是要承认,如果仅此而已,并且无法访问Team Services,我们肯定会绑定.他们可能都在同一解决方案的不同部分上工作,我们将无法将所有更改都重新检查到中央存储库中或合并在单独的分支中所做的更改.我们也将无法访问与先前签到相关的评论,或者我们的积压,测试等.

I've pointed out that we have our source code on our developers' computers, in their mapped work spaces, but admittedly if we ended up with just that and no access to Team Services we'd certainly be in a bit of bind. They might all be working on different parts of the same solution and we wouldn't be able to check all of their changes back into the central repository or merge changes made in separate branches. We also wouldn't have access to the comments associated with previous check-ins, or our backlog, tests, etc.

所以,问题是,有没有办法备份我们在Team Services中托管的所有内容,以便在出现问题时将所有内容还原到本地托管是否安装了TFS(或其他位置)?

So, the question is, is there a way to backup everything that we're hosting in Team Services so that, in the event of something going wrong, we'd be able to restore all of that to a locally-hosted installation of TFS (or somewhere else)?

推荐答案

我参加聚会有点晚了,但是我们开发了Team Services备份工具.我们将其安排为计划任务,并且每晚运行一次.然后,它将所有存储库克隆到磁盘.

I'm a bit late to the party but we developed a Team Services backup tool. We scheduled it as a scheduled task and it runs once a night. It then just clones all our repositories to disk.

来自此博客:

我们使用VSO Rest API查询我们的VSO帐户并获取所有数据 我们需要.由于在VSO中您只能拥有一个Team Project Collection, 我们检索默认集合的所有团队项目.每一个 这些团队项目可以有多个存储库,需要 支持.为每个团队项目创建一个文件夹,并将其保存到 可以在app.config中配置的磁盘上的位置.当...的时候 创建团队项目文件夹后,任务将遍历以下位置的每个存储库 团队项目并为每个存储库创建文件夹.

We use the VSO Rest API to query our VSO account and get all the data we need. Since in VSO you can only have one Team Project Collection, we retrieve all the team projects of the default collection. Each of these team projects can have multiple repositories that need to be backed up. A folder is created for each team project and saved to a location on disk that can be configured in the app.config. When the team project folder is created, the task loops over each repository in the team project and creates folders for each repository.

您也可以在GitHub 此处

You can also fork it on GitHub here

这篇关于有没有一种方法可以备份Visual Studio Team Services项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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