How to migrate Confluence to another server (with addons)
Asked by ChristianWaidner:

I want to transfer an Atlassian Confluence server installation to another server and another database, including all content and addons.

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

Basic procedure is:

* Do XML export
* Install new server
* Copy data directory
* Do XML import

=\> Content is available, addons are not. With jira this procedure works great.

Is there another way to do this besides doing a database backup and restore?


Answers:
author: Lars Olav Velle
body: You could go with the procedure you described or you could just move data, export and import database.

We have a copy of our production instances where users can try out add-ons and "mess around".

Let?s say we get a request to test out a new workflow. The script is invoked and all the data from the production servers are copied to the test server (rsync). The database is automatically dumped and imported again at the test server. Sql queries alters mail server settins, licenses and the base url. Finally the test instances are started. All this happens automatically.

The same procedure could be used when migrating servers.

If your are using linux and are interested i could send you a copy of our script.

-Lars

comments: author: carpenterbees
body: Hello Lars!

i would be greatly appreciated if you could send me the scrip too: carpenterbees (at) gmail.com

And question: is there a way to migrate add-ons from cloud? I mean I have access to web-interface only, I do not have direct access to the DB server or shell.

Thank You.


author: Tim Cornwell
body: Hi Lars!

I would love a copy of your script as well! Could you please send it to me (or a link) to tc225 at cornell \<dot\> edu.

Thanks!


author: Paulo Amorim
body: Hello Lars,

I?ll proceed with a migration and would appreciate if you could send me your script at xapoti@gmail.com

Thank You!


author: Joel Ponce
body: Have any of you gotten this script from [@Lars Olav Velle](/t5/user/viewprofilepage/user-id/817815)? I'd appreciate getting it as well.

Update: Found the gist link below :)


author: Lava Kumar Dukanam _Appfire_
body: Hello Everybody!

Can somebody who has got a script post it on [Github Gist](https://gist.github.com/) and share a link here and make sure to credit the authors work?

I can share it too on Github gist if somebody sends it to me on lavakumar.dukanam\[at\]appfire\[dot\]com

Thanks,

Lava

comments: author: Katie Minks
body: Did this ever get shared to github gist? If so, a link would be awesome!


author: Lars Olav Velle
body: Yes, there are multiple links on this page to gist


author: FreeSoftwareServers
body: Whats up with e-mail the script? Are me and CT the only one's who figure this would be better posted publicly? I am pulling my hair out trying to migrate confluence .... :( Wish I had a copy as well!

comments: author: Joel Ponce
body: I think this what they had shared: <https://gist.github.com/larvel/1d7ef5dee5faee9c1930eb50d10dce93>


author: Itamar Ben Sinai
body: Hi Lars

Can you share the script with me?

thanks

comments: author: Lars Olav Velle
body: See the link above to the GitHub gist page.


author: Shannon Wright
body: Lars, I would love to get a copy of your script. We use linux servers as well.

swright300 at gmail.com

comments: author: Lars Olav Velle
body: Sorry for the late response.

Prerequisite: password-less ssh from prod to test

Change the ID of your user directory accordingly (mine was 10003 back in the days)

<https://gist.github.com/larvel/1d7ef5dee5faee9c1930eb50d10dce93>

I have since using this started to use docker and docker-compose and do not use this approach anymore, but it used to work flawlessly (even without stopping the services on the production server)


author: Vamsi Krishna Reddy
body: Can anybody send the script to my mail id vamsiupdates at gmail dot com

Thanks!

Vamsi Krishna


author: Vamsi Krishna Reddy
body: Hi Lars,

Can you send the script to my mail id vamsiupdates at gmail dot com

Thanks!


author: Roy Boverhof
body: Hi [@Lars Olav Velle](/t5/user/viewprofilepage/user-id/817815)

Would you mind sharing your script with us? info \<at\> server \<dot\> biz

I have tried a manual migration but keep running into problems, after wasting two days I hope to find another way to move servers.

Cheers,

Roy


author: ?ara Rada
body: Hi [@Lars Olav Velle \[Kantega Single Sign-on\]](https://community.atlassian.com/t5/user/viewprofilepage/user-id/817815),

I would be very thankful if you could also share your script with me antonzavodovsky at gmail.com

Thanks a lot!


author: Lars Olav Velle
body: Hi,

I have been offline for some time. Today I sent you all a download link to the script.

Enjoy!

-Lars

comments: author: Abhijeet Mense
body: Even we have a similar requirement, can you pass on the script to abhi.mn at gmail.com


author: Abhijeet Mense
body: Haven't yet received, can you let us know if it was sent from your side.


author: CloudThingSupport
body: It would be nice to have this script available online rather than asking for an email to be sent. :(


author: Okan Bekatli
body: Hi [@Lars Olav Velle](/t5/user/viewprofilepage/user-id/817815)

May I also request your script ? Please send it to okan.bekatli at gmail.com

Many thanks.


author: ChristianWaidner
body: Hello Lars!

Thank you very much for your answer. I suspected, that I have to use the DB dump. I am using Linux for the servers so I am very interested in your script.

Thanks in advance for your support.

Chris

comments: author: Lars Olav Velle
body: I have made some changes to the script so that it can be shared.

Give me your email and I can send you the script.


author: ChristianWaidner
body: Hello Lars!

You can reach me at c.waidner at phytec.de

BTW - is there a way to send a private message in this forum?

Chris


author: Lars Olav Velle
body: Hi,

I?m sending it shortly. There is no private messages in the community.


author: Jayson Franklin
body: Hi, do you mind also sharing with me? jfranklin at kabbage dot com


author: Lars Olav Velle
body: Sure. Just a sec :)


author: Manuel Lindner
body: Hi Lars,

We are also currently dealing with this requirement.

We would be very thankful if you could also share your script with us to my email manuel.lindner@bytesource.net.

Thank you in advance  
Manuel


author: Lars Olav Velle
body: Hi,

Sure, I'll send it to you later this evening.

-Lars


author: somanath kondeti
body: Hi Lars,

I am using Linux for the servers so I am very interested in your script.

Thanks in advance for your support.

Thanks,

somu


author: somanath kondeti
body: Hi Lars,

Can you send the script to my mail id somanath.kondeti@amd.com

Thanks,

somu


author: Lars Olav Velle
body: Hi Somu,

I?ll send you an email shortly.

-Lars


author: somanath kondeti
body: Hi Lars,

Thanks a lot

-somu


author: Samuel Tinapp
body: Hi [@Lars Olav Velle](/t5/user/viewprofilepage/user-id/817815),

I would be very thankful if you could also share your script with me. samuel.tinapp(at)dst-it.de

Thanks a lot

-Sam


author: Hao La
body: Hi [@Lars Olav Velle](/t5/user/viewprofilepage/user-id/817815),

If you could also share your script with me, hao.la (at) xyleminc (dot) com

Thanks a lot,

Hao


author: khughesbp
body: [@Lars Olav Velle](/t5/user/viewprofilepage/user-id/817815) I'm going through this migration process as well and would love to try your script if you don't mind sharing it:

khughes (at) bybaxter (dot) com

Thanks!


author: Medhat Ahmed
body: [@Lars Olav Velle](/t5/user/viewprofilepage/user-id/817815) could you please send the script to me also medhat205213@gmail.com.

thanks alot


Tags: confluence-app