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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

59 views 0 5
Read article

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