How to migrate Confluence to another server (with addons)

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?

11 answers

1 accepted

2 votes
Accepted answer

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

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.

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!

Hello Lars,

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

Thank You!

Have any of you gotten this script from @Lars Olav Velle? I'd appreciate getting it as well.

 

Update: Found the gist link below :)

Hello Everybody!

Can somebody who has got a script post it on Github Gist 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

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!

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

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.

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

Hi,

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

Hi, do you mind also sharing with me? jfranklin at kabbage dot com

Sure. Just a sec :)

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

Hi, 

 

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

 

-Lars 

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

Hi Lars,

 

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

 

Thanks,

somu

Hi Somu,

 

I´ll send you an email shortly.

 

-Lars

Hi Lars,

Thanks a lot

 

-somu

Hi @Lars Olav Velle,

 

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

 

Thanks a lot

-Sam

Hi @Lars Olav Velle,

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

Thanks a lot,

Hao

@Lars Olav Velle 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!

@Lars Olav Velle could you please send the script to me also medhat205213@gmail.com.

thanks alot

Hi @Lars Olav Velle

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

Many thanks. 

Hi,

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

 

Enjoy!

 

-Lars

Even we have a similar requirement, can you pass on the script to abhi.mn at gmail.com

Haven't yet received, can you let us know if it was sent from your side.

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

Hi @Lars Olav Velle [Kantega Single Sign-on],

 

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

 

Thanks a lot!

Hi @Lars Olav Velle

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

Hi Lars,

 

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

Thanks!

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

Thanks!

Vamsi Krishna

0 votes

Lars,  I would love to get a copy of your script.  We use linux servers as well.

 

swright300 at gmail.com

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)

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday in Confluence

Organizing your space just got easier - Page Tree Drag & Drop is here

Hi Community! I’m Elaine, Confluence Product Manager. You may have read my earlier post about page tree in space navigation sidebar. I'm excited to share another improvement that helps you organize ...

101 views 3 4
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you