How to change the location of space export files on Confluence
Platform Notice: Data Center - This article applies to Atlassian products on the Data Center platform.
Note that this knowledge base article was created for the Data Center version of the product. Data Center knowledge base articles 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
You may need to change the destination of the file in case the space export exceeds the disk size where the Confluence home folder is mounted (local home in DC).
Please be aware that using an absolute path will trigger the following bug, but it only affects the download link. The file will be saved in the correct location nevertheless:
Solution
When generating a space export, the temporary files and the final zip are stored by default under <Local-Home>/temp/. This can be changed as follows:
- Define a node that will generate the export if running DC
- Stop it
- Edit the file <Local-Home>/confluence.cfg.xml on that node
Find the following property and change the path to the custom location:
Based on the Confluence version, the property can be one of these.
<property name="struts.multipart.saveDir">${localHome}/temp</property>
or
<property name="webwork.multipart.saveDir">${localHome}/temp</property>
- Save the file, restart the node, and trigger the export from it
The same steps apply to server instances.