# How to relocate the attachments storage directory

#### Still need help?

The Atlassian Community is here for you.

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the server and data center platforms.

Purpose

There are times when the attachments directory might need to be relocated. For example, one of those times is when the disk containing that directory has run out of space.

Solution

To do this, you can either relocate the Confluence home directory, or you can relocate the attachments directory only, using the steps below:

Before proceeding, please take note of the definition of Confluence Home and other important directories.

1. Stop Confluence
2. Backup your entire Confluence home directory and attachments directory
3. Move the attachments directory to the new location
4. Edit <confluence-home>/confluence.cfg.xml by changing the attachments.dir property to point to the new location:

    <property name="attachments.dir">\${confluenceHome}/attachments</property>
If you use S3 object storage with Confluence Data Center, the attachment.dir property won’t work. On S3 object storage, attachments are always stored on the prefix /confluence/attachments.
5. Start Confluence