Migrating Confluence using Home Directory & MySQL Backup

I was following the Atlassian documentation which mentioned that I should create manual backups of confluences attachments (or more generally, the whole home folder) and backup the MySQL database which supports it, instead of using the built in confluence XML backup. The server which I was running has stopped functioning and I'm trying to migrate to a new one now. I have a MySQL backup, as well as a backed up copy of my home directory, but I'm not sure how to use these to restore my instance on a new server. Do I re-install confluence as a blank instance, then overwrite the home directory and MySQL database data? Or is there a better process to follow with what I have? Thanks.

(I'm actually in this boat with all of my products, Crowd and JIRA as well).

Notes: Running on a Ubuntu Server

1 answer

1 accepted

Hi there,

If you have those two backup files, it is not necessary for you to install a fresh instance. Please try the following steps

  1. Restore your database backup
  2. Ensure that your HOME directory backup pointed to the restored MySQL database
    • Configured in confluence.cfg.xml for direct connection (JDBC)
    • Configured in server.xml and confluence.cfg.xml for datasource connection (JNDI)
  3. Prepare a new installation directory
  4. Pointed the new installation directory to your backup HOME directory
  5. Re-configure installation directory if necessary (port, context path etc)
  6. Start-up Confluence

Hope it helps.

Septa Cahyadiputra

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,950 views 12 18
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot