Is There A Way To Backup Visual Studio Team Services Projects?

后端 未结 4 423
南旧
南旧 2021-01-12 04:11

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

4条回答
  •  时光取名叫无心
    2021-01-12 04:46

    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.

    Taken from this blog:

    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.

    You can also fork it on GitHub here

提交回复
热议问题