A commonly asked question is "Where does Confluence store its data?" This page describes the files that Confluence requires to run, and where runtime data is stored.

Confluence's use of the filesystem for many of its configuration and runtime files may make it unsuitable for certain modes of deployment, such as restricted or clustered environments. Atlassian are aware of this restriction, and working on overcoming it in a future Confluence release.

The Application Directory

This is the directory into which the downloaded Confluence application has been unpacked. Confluence does not modify or store any data in this directory, but the following files are important to know about if you are backing up or upgrading your Confluence instance:

  1. confluence/WEB-INF/classes/confluence-init.properties - this file is modified by the administrator installing Confluence, and tells Confluence where to find the Confluence Home Directory.
  2. {{confluence/WEB-INF/classes/osuser.xml - administrators may modify this file to connect Confluence to some external user management such as an LDAP server or JIRA instance
  3. confluence/WEB-INF/lib/ - administrators may choose to deploy plugin or extension JAR files into this directory, especially if they are plugins that can not be automatically loaded through the web interface.

java.io.tmpdir

The standard "temp" directory as configured in the Java runtime. Typically this is /tmp on Unix systems, or C:\Temp on Windows. Some Confluence components will write temporary files or lockfiles to this directory, but very little disk space will be used. To change the location of this directory, you should start the Java Virtual Machine in which confluence is running with the argument -Djava.io.tmpdir=/path/to/your/own/temp/directory.

The Confluence Home Directory

The location of this directory is configured by the Confluence administrator during installation (see confluence-init.properties above). Confluence writes its configuration files, uploaded plugin and attachments into this directory, as well as many temporary files and runtime data. Administrators should expect the Confluence Home Directory to grow quite large in a busy site.

The Confluence Home Directory has the following files and subdirectories:

The Database

All other data - page contents, links, archived mail and so on is kept in the database. If you have configured Confluence to use the embedded HSQL database, the database will store its files under database/ in the Confluence Home Directory. Otherwise, the database management system you are connecting to is responsible for where and how your remaining data is being stored.

All of Confluence's persistent data is stored either in the Confluence Home Directory, or the database. If you have backup copies of both of these, taken at the same time, you will be able to restore Confluence from them (see Restore system from backup).