Migrating Jira applications to another server
This document describes how to migrate/upgrade to Jira applications on different server hardware, or in a different server environment that entails one or more of the following:
- new operating system
- new locations for storing your index and/or attachments
- new database or database system
To migrate Jira to a new server or location, you'll need to install a new Jira instance. Once you've completed the installation, you'll migrate your existing data between the databases, and then move your home directory and all existing customizations.
Migrating to Jira Cloud?
If you're looking to migrate from Jira Server to Jira Cloud, see Migrating to Jira Cloud.
In this method, you'll need to create an XML backup of your database instead of a native one. That's because the native backup might not be compatible with your new database or operating system.
- Create an XML backup of your database.
- Back up your installation and home directory.
- As soon as the backup is complete, delete the
<home-directory>/dbconfig.xmlfile from your existing home directory. This will remove the existing connection between Jira and your database, and allow you to connect to a brand new database.
- Download one of the Jira applications from our website. Choose the zip or tar.gz archive.
If you're upgrading both Jira Core/Software and Jira Service Desk, upgrade Jira Core/Software only. You'll later upgrade Service Desk directly in Jira, without a separate installer.
Extract the files
Extract the archive you've downloaded, and start the upgrade.
- Stop your existing Jira instance.
- Extract (unzip) the files to a directory (this is your new installation directory, and must be different to your existing installation directory).
Edit the following file:
It must point to your existing Jira home directory. Make sure that you deleted the
dbconfig.xmlfile, otherwise Jira will try to connect to your existing database.
(Optional) If you use Crowd for user management, complete these extra steps.Click here to expand...
If you are using Crowd for user management, reapply the modifications from the following files from your existing installation directory to the new files. Do not copy the files as they may be different in the new version of Jira.
Install the database driver
If you're using an Oracle or MySQL database, download a new JDBC driver. For other databases, you can omit this step.
If the driver is up to date, you can also copy it from your previous version.
- Download one of the following drivers:
- Oracle: JDBC driver 126.96.36.199.
- MySQL: the latest JDBC driver.
- Place it in
Re-apply any modifications
While using Jira, you’ve probably added some custom modifications to Jira files. These may include connection details, settings related to memory allocation, or other JVM arguments. In this step, you need to re-apply the same modifications to the new files by copying them from your backups.
Make sure you don't just copy over the old files, as the 'native' settings they contain might have changed between the Jira versions.
Some of the files we usually modify:
setenv.bat(memory allocation and other JVM arguments)
- for more, see Important files in Jira
Start Jira for the first time
Start your new Jira version, and connect it to the database.
- Go to
<installation-directory>/bin, and run one of the following files:
- Open Jira in your browser.
- When prompted, choose I'll set it up myself to get access to more setup options.
- Select My own database, and provide details of a new, empty database.
On the next screen, click Import your data, and select the file with your XML backup.
Avoid passing through a proxy when importing your XML data, especially if your Jira instance is large. Using a proxy may cause timeout errors.
- Follow instructions on the screen to complete the setup.
Your Jira instance has been migrated. Below you can learn how to upgrade Service Desk, if you have it, and how to upgrade your apps.
(Optional) Update Jira Service Desk
If you're using Jira Service Desk, you can update it directly in the UI, without downloading a separate installer.
- Go to > Applications > Versions and licenses.
- Update Jira Service Desk. This will automatically update Service Desk to a compatible version.
Upgrade apps (add-ons)
Upgrade your apps, so they're compatible with the new version.
- Go to > Manage apps > Manage apps.
- Upgrade your apps to the supported versions.
Your old index is incompatible with the new version, and will be deleted by Jira. Run the reindex to rebuild it from scratch. This step might take some time, depending on how many issues and apps you have.
- Go to > Indexing, and run Lock Jira and rebuild index.