Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Migrate SQL to PostgreSQL

Raj March 16, 2023

Hi All,

I am new to Jira and current Jira DC version 8.20.8 we are using with SQL 2019. Current application servers are setup using archive (TAR) file.

Now we are planning to migrate to new servers including app and database (migration to PostgreSQL). Is it ok to setup new app servers with "Install Jira using an installer" option?

Also what is the best way to migrate to PostgreSQL and to new app servers? Thanks in advance.

2 answers

2 accepted

4 votes
Answer accepted
Dirk Ronsmans
Community Champion
March 16, 2023

Hey @Raj ,

In addition to @Fabio Racobaldo _Herzum_ 's documentation this should help you out too

https://confluence.atlassian.com/adminjiraserver/switching-databases-938846867.html

In short you'll have to set up a new DB on the new technology and then perform an XML backup/restore within Jira (as there is no way to convert between database technologies directly)

Raj March 16, 2023

Thanks @Dirk Ronsmans . This means no action on database side. Just setup new DB technology and do a XML restore in Jira (Update dbconfig.xml with new db connection name) right?

Dirk Ronsmans
Community Champion
March 16, 2023

correct!

Like • Raj likes this
Raj March 16, 2023

Also current app servers are setup using Archive file (TAR).. Can i setup my new servers with Installer mode... or it has to be setup in same mode for XML backup/restore to work?

Dirk Ronsmans
Community Champion
March 16, 2023

They way you set up your Jira is of no concern. Once installed it will be the same just a different way of installing it.

Raj March 16, 2023 edited

Thanks again.. one more question, sorry to ask

What about the jira-shared-home directory (shared drive which stored attachments)? do i need to copy and restore to new drive?

Dirk Ronsmans
Community Champion
March 16, 2023 edited

If you switch servers you'll have to either copy the attachments over to the new directory or if it's a share somewhere, point to that share in your config file.

Attachments will not be included in the XML backup, that's just the issue data.

You could also do this in a phase approach to avoid issues.

Perhaps first move to PostgreSQL on your current servers and then move the instance? Or set up a new Jira with the old DB architecture (could be a different DB that was restored) and then switch?

That might avoid multiple points of failure.

Raj March 16, 2023

Current setup is Jira app with SQL database and shared drive for attachments

I thought of doing below:

  1. First setup brand new Jira instance(multiple servers/cluster) and PostgreSQL as backend
  2. Take XML backup of old jira instance
  3. Restore attachments to new shared drive
  4. Import XML backup to new Jira instance

Is this a good approach? No need of doing a DB restore if understood correctly. Once XML import is done, data will be updated to new PostgreSQL database?

Dirk Ronsmans
Community Champion
March 16, 2023

Sounds good to me. This way you still have your old system to fall back on if something goes wrong.

There is indeed no need to restore a DB, the XML import will inject it in to your PostgreSQL DB

Like • Raj likes this
Dan Vink November 21, 2023

I did everything above but I lose permissions in service desk projects. Has anyone come across this?

0 votes
Answer accepted
Fabio Racobaldo _Herzum_
Community Champion
March 16, 2023
Raj March 16, 2023
Like • Fabio Racobaldo _Herzum_ likes this
Fabio Racobaldo _Herzum_
Community Champion
March 16, 2023

You're welcome @Raj 

Like • Raj likes this

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, team '25 europe, atlassian event, barcelona 2025, jira, confluence, atlassian intelligence, rovo, ai-powered collaboration, developer tools, agile teams, digital transformation, teamwork solutions, atlassian conference, product announcements

🌆 Team '25 Europe registration is now open!

Join the largest European gathering of the Atlassian Community and reimagine what’s possible when great teams and transformative technology come together. Plus, grab your Super Fan ticket now and save over €1,000 on your pass before prices rise on 3 June.

Register now
AUG Leaders

Atlassian Community Events