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 Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Apr 17, 2018 in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

792 views 2 19
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