Reputation: 163
How to change data directory path for existing TeamCity server?
Upvotes: 2
Views: 7393
Reputation: 66
In addition to the accepted answer, I'd like to add (cf. documentation) that one can do the data directory (on either Linux or Windows) migration by:
TEAMCITY_DATA_PATH
OR the file: <TeamCity home directory>/conf/teamcity-startup.properties
to specify the new data folder location. If using the file, one line in it should look like this: teamcity.data.path=E\:\\TeamCityData
(example for Windows).Upvotes: 0
Reputation: 3370
You should stop TeamCity server, move existing TeamCity data directory to a new location, let TeamCity server know about new data directory using /conf/teamcity-startup.properties file (since 9.1 version) or TEAMCITY_DATA_PATH environment variable (for more details see this section). Actually you can use instructions for Copying TeamCity server, but skip Installation and database copy steps.
Upvotes: 9