YouTrack Standalone 7.0 Help

Change Database Location

On this page:

YouTrack uses its own in-process database. By default, data files are saved to the <youtrack_home>/data directory.

The default directory where YouTrack stores data contains the following subdirectories:

NameDescription
youtrackContains the YouTrack database
hubContains the database for the Hub service, if built-in Hub has ever been used for the YouTrack instance
internalMay contain other internal product data

When you copy your existing database to the new location, make sure the new location uses the same folder structure that is shown here.

/help/img/youtrack/7.0/youtrackDataDirectory.png

Change the Database Location for JAR Distribution

If you run YouTrack as a standalone Java process, you can specify the database location in the command line.

To change the database location:

  1. Stop the YouTrack server.
  2. Move your existing database to the new database directory.
  3. Enter the following configuration parameter:
    java -Ddatabase.location=<new YouTrack database directory>
  4. Start the YouTrack server.

Change the Database Location for MSI and ZIP Distributions

For MSI and ZIP distributions, you can change the default location of the YouTrack database with the configure command in the command line. To execute these commands in an MSI distribution, open the Command Prompt window as an administrator.

To change the database location:

  1. Stop the YouTrack service. For specific instructions, see Stop and Start YouTrack.
  2. Move your existing database to the new database directory.
  3. Enter the following configure command to set the location of the new data directory:
    <youtrack_home>bin/hub.sh configure --data-dir=<new YouTrack database directory>
  4. Start the YouTrack service. For specific instructions, see Stop and Start YouTrack.
Last modified: 2 February 2017