Confluence 5.7 has reached end of life
Check out the [latest version] of the documentation
Backing up the whole home directory is the safest option, however most files and directories are populated on startup and can be ignored. At minimum, these files/directories must be backed up:
The rest of the directories will be auto-populated on start up. You may also like to backup these directories:
The location of the home directory is configured on installation and is specified in the confluence.init.properties
file. For installation created with the automatic installer the default locations are:
C:\Program Files\Atlassian\Application Data\Confluence
/var/atlassian/application-data/confluence
For Clustered instances only: Backing up the whole shared home directory is the safest option, however some files and directories are populated at runtime and can be ignored:
The commands to back up your database will vary depending on your database vendor, for example the command for PostgreSQL is pg_dump dbname > outfile
.
You should refer to the documentation for your particular database to find out more.
Our guide on Migrating Confluence Between Servers has instructions on restoring a backup using this technique.
XML backups are described and used for other processes in Confluence, like upgrading and moving servers. Using the backup strategy described above will work for those processes too.