How to separate the home and install directories in Confluence

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Purpose

It's recommended to create the 'Home' directory separately from the 'Install' directory, however if you've already combined the two directories this will help you untangle them.

Solution

  1. Stop Confluence

  2. Backup your current home/installation directory

  3. Create a new blank home directory (parent only, no sub-directories)

  4. Move the following files/directories to the new home directory

    • attachments

    • backups

    • bundled-plugins

    • bundled-plugins_language

    • config

    • confluence.cfg.xml

    • imgEffects

    • index

    • plugin-cache

    • plugins-osgi-cache

    • plugins-temp

    • thumbnails

    • viewfile

  5. There are two sub-directories which will need to be created in the home directory:

    • logs

      • It's fine to leave this empty, however if you want to keep your existing confluence log move the atlassian-confluence.log file from the existing 'logs' directory to the newly created one

    • temp

      • This is also fine to leave empty

  6. Edit the <confluence-install>/WEB-INF/classes/confluence-init.properties file to reflect the new home directory path (the one created in Step 3)

  7. Start Confluence

Did it work?

If you've followed the steps correctly, your new installation and home directories should look like this:

Home

(Auto-migrated image: description temporarily unavailable)

Install

(Auto-migrated image: description temporarily unavailable)

You should have no problems starting Confluence, and the log files should be updated as normal.

If Confluence tries to load a new site (such as in a new installation), you'll need to confirm that the home directory path is specified correctly in confluence-init.properties.

If you find you're unable to search or the recently updated menu isn't showing any content, try rebuilding your search index via Confluence Admin > Content Indexing

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.