Change Database Location
The default directory where Hub stores data contains the following subdirectories:
Name | Description |
---|---|
dashboard | Contains the database for the Dashboard service |
hub | Contains the database for the Hub service |
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.
You can use the following procedure to change the database location for both ZIP and MSI distributions. To execute these commands in an MSI distribution, open the Command Prompt window as an administrator.
To change the database location:
- Stop the Hub service. For specific instructions, see Stop and Start the Hub Service.
- Move your existing database to the new database directory.
- Enter the following
configure
command to set the location of the new data directory:
<hub_home> bin/hub.sh configure --data-dir=<new Hub database directory>
- Start the Hub service. For specific instructions, see Stop and Start the Hub Service.
Logs and Temp Directories
If you move your database to another server, you may also want to change the location where Hub stores logs and temp files.
To change the location of these files, follow the same procedure that is described for changing the database location and execute the following commands in the script file:
Directory | Command |
---|---|
Logs | configure --logs-dir=<new Hub logs directory> |
Temp | configure --temp-dir=<new Hub temp directory> |
Last modified: 6 April 2017