有没有办法备份 Visual Studio Team Services 项目? [英] Is There A Way To Backup Visual Studio Team Services Projects?

查看:36
本文介绍了有没有办法备份 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.

我已经指出,我们在开发人员的计算机上,在他们映射的工作空间中拥有我们的源代码,但无可否认,如果我们最终只有这样并且无法访问团队服务,我们肯定会陷入困境绑定.他们可能都在处理同一个解决方案的不同部分,我们将无法将他们的所有更改都检查回中央存储库或合并在不同分支中所做的更改.我们也无法访问与之前签到相关的评论,或我们的积压、测试等.

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 中您只能拥有一个团队项目集合,我们检索默认集合的所有团队项目.每一个这些团队项目可以有多个需要备份.为每个团队项目创建一个文件夹并保存到可以在 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天全站免登陆