This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: set these variables to match TeamCity environment | |
SET TEAMCITY_DATA_PATH=D:\Config\TeamCity | |
SET TEAMCITY_DATA_BACKUP=D:\Temp\TeamCity | |
SET TEAMCITY_HOME=C:\TeamCity | |
SET TEAMCITY_BACKUP_FILE=D:\Config\TeamCity\TeamCity_Backup_xxx_xxx.zip | |
:: maintainDB expects these directories to be empty or absent. | |
move /Y %TEAMCITY_DATA_PATH%\config %TEAMCITY_DATA_BACKUP%\config | |
move /Y %TEAMCITY_DATA_PATH%\system %TEAMCITY_DATA_BACKUP%\system |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text.RegularExpressions; | |
using System.Xml; | |
using System.Xml.Linq; | |
namespace GithubWikiDoc | |
{ |