I was trying to decrypt my Linux server hard drive but ran into some problems. Long story short, I now want to reinstall Ubuntu on my machine and restore my previous JIRA database from a hard drive backup on an external hard drive. In other words, I cannot boot from my hard drive backup but have all the data and want to restore my JIRA database from where it sat on the computer before I messed it up. I do not have a JIRA backup, only a hard drive backup. Can this be done? Can I install JIRA and run it using the database on this hard drive so I can migrate it back to the machine? What steps do I need to take? What problems might I run into? Thanks for any and all help!
Since I had no database dump and simply a hard drive backup to work from, I had to patch together several techniques to get back my JIRA installation. I don't know if I will be able to recall all of the specifics but I can try:
I may not have been as complete with every step so don't be surprised if you run into errors. With good enough Googling, you should be able to get past every step. Keep in mind this was on Ubuntu 14.0.4 and JIRA v6.4.2#64017 (build number is important, I now know). It's entirely possible this will work on other distros but the steps will be different, at least as far as the locations of things are. I cannot attest as to whether this will work with other databases though. If anyone is as dumb as I am, hopefully this helps you out!
Hi,
if you have a dump of the database you can bring back to life your old JIRA instance witouth much trouble. I've done it recently, having MySQL as DBMS.
The steps I followed:
Create a database. Something like
CREATE DATABASE jiradb CHARACTER SET utf8 COLLATE utf8_bin;
GRANT ALL PRIVILEGES ON jiradb.* TO 'jirauser'@'%' IDENTIFIED BY 'password';
# mysql -u root -p
mysql> drop database jiradb;
# nohup mysql -u root -p jiradb < ./your_dump.sql
You might have problems due to missing plugins and so. You'll need to examine the log, to discover and fix possible issues.
Good luck!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We do following to create new test JIRA instance:
It works well.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Vasiliy, thanks for the quick response but I didn't word my question correctly. I don't have a JIRA backup, I have a backup of a hard drive where JIRA used to be installed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I see. I have never used this, but during installation of JIRA there is an ability to create JIRA from database.
See this for instractions: https://confluence.atlassian.com/jira/running-the-setup-wizard-185729463.html
Namely see "Production and testing setup" where you can select database to connect.
Also pay attention, that attachements are not stored into database. You have to copy it manually.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You need to get two things from the disk - the attachments, which Vasiliy already mentioned, which is a simple case of "copy a directory", and the database, which could be difficult.
Problem with the database is that it varies between installs. "What database were you using?" is the first question, as it determines how to recover it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.