Moataz Eisa
Moataz Eisa

Reputation: 163

How to change TeamCity data directory?

How to change data directory path for existing TeamCity server?

Upvotes: 2

Views: 7393

Answers (2)

s.crat
s.crat

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:

  1. stop the server service/daemon.
  2. copy, rsync, mirror the original folder to the new location.
  3. edit the environment variable 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).
  4. start the server service/daemon.

Upvotes: 0

Alina Mishina
Alina Mishina

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

Related Questions