Often in the documentation, you'll see a reference to the 'Confluence Home directory'. What is the Confluence Home Directory?The Confluence Home directory is the folder where Confluence stores its configuration information, search indexes and page attachments. If you are using the embedded HSQLDB database supplied for evaluation purposes, the database files are also stored in this directory. |
|
Finding the Confluence Home Directory
The location of the Confluence Home directory is defined when you install Confluence. This location is stored in a configuration file called confluence-init.properties, which is located inside the confluence/WEB-INF/classes directory in your Confluence Installation directory.
When Confluence first starts up, it reads the confluence-init.properties file to determine where to look for the Home directory.
Once Confluence is running you can find the Confluence Home directory via the Administration console, under Administration > System Information > Confluence Information - Confluence Home.
Content of the Confluence Home Directory
The Confluence home directory contains some of the configuration data used by Confluence. Other data is stored in the database. This section outlines the purpose of the files and directories in the Confluence home directory.
confluence.cfg.xml
This file contains all of the information necessary for Confluence to start up, such as:
- Product license
- Context path
- Database details, such as location and connection pool settings
- Paths to important directories
attachments
This directory contains every version of each attachment stored in Confluence. This directory is not used when Confluence is configured to store attachments in the database. Attachments are always stored in the database in clustered instances of Confluence.
Paths within this directory have the following structure:
/attachments/PAGE_ID/ATTACHMENT_ID/VERSION
You can specify an alternative directory for attachment storage by setting the attachments.dir property in confluence.cfg.xml.
backups
Confluence will place its daily backup archives in this directory, as well as any manually generated backups. Backup files in this directory take the following form:
daily-backup-YYYY_MM_DD.zip
You can specify an alternative directory for backups by setting the daily.backup.dir property in confluence.cfg.xml.
bundled-plugins
Confluence ships with a set of bundled plugins. These are plugins written by the Atlassian and the Confluence community that we think provide useful and broadly applicable functionality in Confluence. The {{bundled-plugins)) directory is where Confluence will unpack its bundled plugins when it starts up. This directory is refreshed on every restart, so removing a plugin from this directory will not uninstall the plugin. It will simply be replaced the next time Confluence starts up.
database
This is where Confluence stores its database when configured to run with the HSQL embedded database. In such cases this directory contains all Confluence runtime data. Installations configured to run using an external database such as MySQL will not use this directory.
index
This is where Confluence stores its indexes for rapid retrieval of often used data. The Confluence index is used heavily by the application for content searching and recently updated lists and as such is critical for a running Confluence instance. It is important to note however that should the data in this directory be lost or corrupted, it can be restored by running a full reindex from within Confluence. This can take a long time depending on how much data is stored Confluence's database.
An alternative directory may be specified for the index by setting the lucene.index.dir property in confluence.cfg.xml. As this is the most heavily accessed directory in the Confluence home directory you might want to consider hosting it on the fastest disk available. It would also be useful if the disk holding the Confluence index was not heavily used by any other application to reduce access contention.
plugin-cache
All Confluence plugins are stored in the Confluence database. To allow for quicker access to classes contained within the plugin JARs, Confluence will cache these plugins in the plugin-cache directory. This directory is updated as plugins are installed and uninstalled from the system and is completely repopulated from the database every time Confluence is restarted. Removing plugins from this directory does not uninstall them.
resources
The resources directory stores any space logos used in your Confluence instance. For each space with a space logo, there is a directory within resources named after the space's key. That directory contains the space's logo.
temp
The temp directory is used for various runtime functions such as exporting, importing, file upload and indexing. As the name suggests, and file in this directory is of temporary importance and is only used during runtime. This directory can be safely emptied when Confluence is offline.
An alternative directory may be specified for temporary data by setting the webwork.multipart.saveDir property in confluence.cfg.xml.
thumbnails
When Confluence generates a thumbnail of an image (for example when the gallery macro is used), the resulting thumbnail is stored in this directory for quicker retrieval on subsequent accesses. This directory is essentially a thumbnail cache, and deleting files from this directory simply means the thumbnail will have to be regenerated on the next access.
RELATED TOPICS
Confluence Installation Directory
Important Directories and Files
The Embedded HSQLDB Database







9 Comments
Hide/Show CommentsOct 21, 2010
Anonymous
Is this documentation still applicable to 3.4?
I can't find the file confluence-init.properties in WEB-INF/classes or any other file that stores the confluence home directory.
Does this mean, to redirect my home direct to the D disk, that I have to reinstall?
Oct 21, 2010
Anonymous
Hi - I was able to create the file and add the line as indicated above. Once I started up Tomcat I confirmed that it's using the location I set. Not sure why the new version does not include this file.
Oct 21, 2010
Sarah Maddox [Atlassian Technical Writer]
Hallo there
Thank you for this information! Please would you let us know which distribution of Confluence you are using? For example, Windows Standalone zip file, Windows WAR, Windows Evaluation Installer, or Mac Standalone, and so on?
I've verified that the file exists in the Windows Standalone zip version, but that's just one of them.
Cheers
Sarah
Oct 25, 2010
Sabine Van Regenmortel
Hi Sarah,
Thanks for your answer.
I used the 3.4 Windows Evaluation Installer.
Today again, I tried to put the home folder on the D disk during installation:
So:
confluence-init.propertiesfileThanks in advance,
Sabine
Sep 01, 2011
Vincent Choy [Atlassian]
Hi Sabine,
In answer to your questions: The design of Confluence-Windows Evaluation installer is focused on ease of installation. As it is a windows application, the design was to place all user specific data in the common Windows paths location: (ie APPDATA). That is why you will see other vendors storing their own specific application data in the same directories.
To help you out a bit more, you can alternatively install the Installing Confluence on Windows from Zip File and choose the same 'evaluation installation' option. From here the
confluence-init.propertiesfile is available for you to set the confluence-home directory.Other things you could try would be (baring restrictions and permissions), is you 'could' create a directory 'shortcut' from the Altassian appsdata directory to another directory - we have not tested this but could be a suitable alternative for your situation.
Hope this helps.
Regards
Vincent.
Oct 28, 2010
Sabine Van Regenmortel
Hi Vincent,
Thanks for your quick answer. I understand this is kept simple in the Evaluation version. I will try out your proposal of Installing Confluence Standalone on Windows from Zip File today.
Meanwhile I tried the same as 'Anonymous' above suggested:
Now the new home directory is used for backups and attachments, but when removing the old home folder, Confluence doesn't start up any longer. So it must still be using out of that old home directory in order to start up...
Thanks again,
Sabine
Oct 26, 2010
Sabine Van Regenmortel
Good idea, i didn't think it would work (as described below).
Thanks!
Feb 06, 2011
Anonymous
How do you find this if you're using the hosted solution.
Feb 06, 2011
Vincent Choy [Atlassian]
Dear Anonymous,
If you are on hosted, the confluence home directory storage would be hosted as well. We recommend you raise an http://support.atlassian.com 'Enterprise Hosted' ticket; fill in all the details, and the hosted provider will be able to assist you in retrieval of this directory.
Add Comment