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

This widget could not be displayed.

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
Community showcase
Posted 4 hours ago in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

18 views 0 1
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