Teamcity restore a deleted build configuration

Mohammad Nadeem picture Mohammad Nadeem · Dec 3, 2014 · Viewed 9.8k times · Source

Is there a way in teamcity to restore a deleted build configuration. I found Restore just deleted project which is about restoring a deleted project but can't find any information about restoring a deleted build configuration. I am using Teamcity 8.0.6

Answer

Luke Puplett picture Luke Puplett · Aug 22, 2016

TeamCity 9, locate your data directory and you'll find a trash folder, like so:

D:\TeamCity\Data\config\_trash

Take a copy of the whole thing to some other folder, just in case.

Move the effected project folders from config\_trash to config\projects.

Remove the suffixed .projectNN from each project folder.

You may see critical errors in the main web portal while this is happening.

Restart TeamCity just for good measure.

Suffixes