YouTrack Standalone 2017.2 Help

Change Database Location

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:

Name

Description

youtrack

Contains the YouTrack database

hub

Contains the database for the Hub service, if built-in Hub has ever been used for the YouTrack instance

internal

May 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.

youtrackDataDirectory

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/youtrack.sh configure --data-dir=<new YouTrack database directory>

  4. Start the YouTrack service. For specific instructions, see Stop and Start YouTrack.

Last modified: 7 March 2019