Steps for Safe Migration of Jira and Confluence to other servers
Asked by testdockerhub:

hello Community,

i will start aMigration of Confluence and Jira Software from an Old production server to a newest instances ,the BD is on MSSQL ,i made a backup of the DB and start a new DB from the restored DB.

i saw that i should modify dbconfig.xml to point to the new DB on Jira and the confluence.cfg.xml for confluence .

i copied the HOME_DIR for both applications to the new instances , but im worried about my links inside Jira and confluence when i will start my new instances, is there any thing that i should modify or run to update those links and ensure that they will work as they was on the old servers !!! if so please can you provide me witht the Best Practises .

Thanks .


Answers:
author: brbojorque
body: Hi [@testdockerhub](/t5/user/viewprofilepage/user-id/2549415) , for the links, you have to assess if you are using a reverse proxy e.g Apache / Nginx / IIS.

On the cutover period make sure the domain is pointed to the new IP of the new server.

-

If you will be changing the base url of the instance, there are strategies to change them before you migrate the data to the new instance.

Please check this article and see if it applies to you.

<https://confluence.atlassian.com/confkb/how-do-i-replace-all-hard-links-to-my-old-base-url-284366235.html>

comments: author: testdockerhub
body: thanks [Bryan Bojorque](https://community.atlassian.com/t5/user/viewprofilepage/user-id/1221722) that was close to what im searching for, but i saw here that they explain how we make a SED on the XML of our backup, but for me i will not backup in this way, i will make a ful backup of my MSSQL and then connect it to my new instance,so im not sure where exactly i can make the modifications !!! ( yup there is Nginx reverse proxy in front of the 2 applications ).

so any suggestion about this case !


author: brbojorque
body: Hi [@testdockerhub](/t5/user/viewprofilepage/user-id/2549415) , In order to execute the sed function you must export the database first and perform sed operation and reimport it again.

Btw before you do this, just assess first how many hard links in the system. If fewer than 100 then it is not worth doing this.

Normally Jira will just change the links when the baseurl is changed in the General Configurations and then it will apply to issues overall.

Take note of **Hard-links** and **Soft-links**.

Good luck with the migration please take a backup.


author: testdockerhub
body: umm i see that you discussed about 3 important points here :

1- executing the SED , im not sure on what exactly i should run the SED !

2-if Jira will change all those links by changing the baseurl.,why that cause problem of lot of peaple!.

3-Hard and Soft links,about what exactly !

hope that i can find answers on that, and thanks a lot for your support [Bryan Bojorque](https://community.atlassian.com/t5/user/viewprofilepage/user-id/1221722)

Thanks


author: brbojorque
body: Hi [@testdockerhub](/t5/user/viewprofilepage/user-id/2549415) ,

Please do a quick JQL search in your environment.

```
text ~ "https://youroldurl.com"
```

If you see any results, it would mean that these are the issues that have hard links to the description or summary.

Soft links are the URL to the issues when you click to open it.


author: testdockerhub
body: thanks [Bryan Bojorque](https://community.atlassian.com/t5/user/viewprofilepage/user-id/1221722) i will try that


author: Alexey Matveev
body: Hello,

Kindly read these guides:

<https://confluence.atlassian.com/doc/migrating-confluence-between-servers-184150.html>

<https://confluence.atlassian.com/adminjiraserver071/migrating-jira-applications-to-another-server-802592269.html>

comments: author: testdockerhub
body: Thanks Alexey, i already checked the documentation ,but i did not saw any points about how links will work !!! i may need some advises from some one who made this Operation and his HandsOn experience on that


Tags: jira-software

migration