User Tools

Site Tools


Migrate Jira to new server

Setup mysql

 dpkg -i mysql-apt-config_0.8.11-1_all.deb

Create jira user:

 CREATE USER 'jiradbuser'@'localhost' IDENTIFIED BY '<password>';
 GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,ALTER,INDEX on jiradb.* TO 'jiradbuser'@'localhost' IDENTIFIED BY '<password>';

Make sure above matches in /var/atlassian/application-data/jira/dbconfig.xml.

Zip up jira data directory and make database backup

 tar cjvf jira_install_dir_$(date +%F).tar.bz2 /opt/atlassian/jira/
 mysqldump -u jiradbuser -p --databases jiradb > jira.sql

On new server unpack the jira data dir and restore DB:

 mysql -uroot -p evojira < jira.sql
 tar vxf evojira_2018_12_07_1417.tar.gz -C /

Install apache and enable apache modules

 apt install apache2
 a2enmod rewrite ssl proxy proxy_http

Enable ssl. See Jira ssl apache2 configuration

Install jira and mysql connector


Run installation


Copy java connector plugin

 apt install unzip
 unzip -d .
 cp mysql-connector-java-5.1.41-bin.jar /opt/atlassian/jira/lib

Start jira

 /etc/init.d/jira start
wiki/migrate_jira_new_server.txt · Last modified: 2021/01/11 15:49 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki