Confluence allows you to store attachments in one of three places:
A System Administrator can configure Confluence's attachment storage via the 'Attachment Storage' option on the 'Administration Console'.
|
|
Attachment Storage Options
Local File System
By default, Confluence stores attachments in the attachments directory within the configured Confluence home folder. If you are looking to run Confluence Clustered, attachments must be stored in the database.
Database
Confluence gives administrators the option to store attachments in the database that Confluence is configured to use.
Here are some reasons why, as an administrator, you may want to choose this storage system:
- Ease of backup.
Avoiding issues with certain characters in attachment file names.

While storing attachments in the database can offer some advantages, please be aware that the amount of space used by the database will increase because of the greater storage requirements.
WebDAV
Confluence also allows administrators to set an external WebDAV repository as the location for attachment storage.
| WebDAV attachment manager deprecated The option to store Confluence attachments on a WebDAV server has never worked in a useful fashion, and has not been maintained for many versions.
|
Migration between Attachment Storage Systems
You can 'migrate' your attachments from one storage system to another. All existing attachments will be moved over to the new attachment storage system.
When the migration occurs, all other users will be locked out of the Confluence instance. This is to prevent modification of attachments while the migration occurs. Access will be restored as soon as the migration is complete. |
When migrating attachments from your database to a filesystem, the attachments are removed from the database after migration. However, when migrating attachments from a filesystem to your database, the attachments remain on the filesystem after migration. If you wish to change this function's behaviour from 'copy' to 'move', please see CONF-14802 and cast your vote. |
To perform a migration, follow the steps below:
-
Go to the Confluence 'Administration Console':
- Choose Browse > Confluence Admin. The 'Administrator Access' login screen will be displayed.
- Enter your password and click Confirm. You will be temporarily logged into a secure session to access the 'Administration Console'.
- Click 'Attachment Storage' in the left-hand panel. The current configuration will be displayed.

Attachment storage configuration - Click the 'Edit' button to modify the configuration.
- Select the storage system you desire.

Edit attachment storage - Click the 'Save' button to save the changes.
- A screen will appear, asking you to confirm your changes. Clicking 'Migrate' will take you to a screen that displays the progress of the migration.
![migrationWarning.jpg [Fixed typo for CONF-14136]](/download/attachments/166876/migrationWarning.jpg?version=2&modificationDate=1231394161967)
Migration warning
Troubleshooting
To enable debug logging for WebDAV attachment storage, add the following to the bottom of WEB-INF/classes/log4j.properties and restart Confluence:
RELATED TOPICS
|
Page:
Important Directories and Files
|










18 Comments
Hide/Show CommentsMar 21, 2006
Guy Fraser (Adaptavist)
Is there any way for hosting companies to stop administrators from storing the files in the database? We're moving our database on to a seperate server and having attachments stored in there would be a major nightmare.
Mar 21, 2006
Tom Davies
You can change the .vm file to remove that option.
Tom
Feb 28, 2007
David Nessl
Has this setup been tried with the mod_dav_svn module in Apache 2.2? This module provides WebDAV service, where files are stored in a Subversion (version control) repository. I can configure Confluence (2.3.3) to use this type of WebDAV server for attachment storage, then the migration takes several minutes to run (as expected), but no files show up in the Subversion repository (almost as if the files were transfered but no "commits" never happened).
Apr 01, 2007
Matt Ryall (Atlassian)
Although I haven't tested it, I don't think the WebDAV attachment storage works as you would expect with Subversion as a back-end. I'm basing this on the fact that there's a third-party plugin to provide exactly this functionality, although it's still in the alpha development phase.
Try adding the extra logging as described in Troubleshooting above. If you think there's a bug in our WebDAV support, please raise a support case, and attach your logs. We'll investigate further from there.
Apr 01, 2007
David Peterson [CustomWare]
I believe you are correct about SVN+WebDAV - I tried using it that way myself a couple of days ago (in a different context) and it wasn't cooperative.
Dec 19, 2007
Scott Conroy
Really unhappy to see the WebDAV support for attachments being deprecated. My company is currently using the file storage option but we were planning to migrate to WebDAV in the near future.
Jun 25, 2008
Phil Beck
My confluence installation is on a linux server. I've created a link for the attachments directory off to an NFS mount point. It seems to be working just fine. Has anyone encountered any issues using NFS as an attachments location?
Jun 26, 2008
Tony Cheah Tong Nyee
Hi Phil,
We have not test on such configuration in depth and NFS storage is not a configuration we support. Although, we do have customers using such configuration successfully, a networked filesystem is something we like to eliminate as a potential cause of problems in support cases.
However, the following could be the potential risks that you might want to consider:
Hope it helps.
Cheers,
Tony
Aug 31, 2008
Semir Hasanbegovic
Hi,
Any recommendations on whether one should use the database for attachment storage (in our case MySQL 5) or the File System (Linux ext3)?
We currently use the DB and it almost seems that Atlassian recommend this but I've heard people say that storing a lot of data in the DB as BLOBs is not a very good idea.
Any thoughts?
Our attachment data is about a GIG in size now.
My understanding is that MySQL does not have a size limit (other than the limit of the disk it is on) so we'd be happy to keep using it unless it is better to use the FS in the long run.
I'm not an MySQL expert so I'd appreciate some thoughts from people here.
Many Thanks
Semir
Sep 01, 2008
Ivo Verlaek [Atlassian Partner] Platinum Specialist
It usually has something to do with the backup facilities of your IT Department.
Not storing the data within your database creates two locations for your backup strategy (Database and File System).
The backup's of each of these smaller parts are a little bit faster on it's own.
The attachments could be stored on a NAS Drive which could be easier to implement as extending your DB.
however,
Storing everything on the database makes backing it up a little easier for your IT Department, as regular backups should always be performed on all your database content. The procedures are well known and they do not have to be linked to another backup with files from your file system (could be an administrative problem).
Another reason for storing everything in the database could be a possible future migration to a confluence clustered environment.
I usually say:
Do whatever your IT Department thinks is best.
and
Use the tools they are most familiar with as there is no big difference.
Feb 17, 2009
Anonymous
Our IT people are telling us that we should see a performance boost (which we really need) by moving the attachments out of the DB and back into the filesystem, particularly as the DB is on a separate Oracle server. Has anyone seen any such improvements in the one over the other in terms of performance?
Feb 17, 2009
Henry Tiong [Atlassian]
Hi there,
Though we don't have a concrete whitepaper to support this, but based on my experience, so far I haven't seen any issue with Confluence due to storing attachments in the file system. In your case however, since your DB is residing on a different machine, do note of the network latency when your Confluence is trying to retrieve/store the attachments, thought it might not be that significant if it is in the same LAN. Other performance gain that I can think of is that it your periodically database backup/dump files will definitely be much smaller.
hope this helps,
Henry CL Tiong
Atlassian Support Team
Feb 20, 2009
David Vonka
Is there any issue with attachment size ? Our administrator tells us we should not 'use confluence as Rapidshare', i.e. upload attachments
larger than say 5 MB. We do use quite some videocasts in our company, so the need for big uploads appears reguralry. We store the attachments in the
filesystem. Any advice would be welcome. Thanks.
Feb 25, 2009
Zed Yap [Atlassian]
Hi David,
As far as I know, there should not be any issue regarding attaching a large file size. The only thing that you have to ensure is your local disks have sufficient space.
Hope that helps.
Best rgds,
Zed
Sep 23, 2009
Anonymous
Hi,
I am interested in the comment above RE NFS - "We have not test on such configuration in depth and NFS storage is not a configuration we support". Is this statement still true?
thanks
Feb 23, 2011
Malte Krueger
I am really interested in the NFS thing as well. We are currently implementing a SAN / NAS solution and i am wondering if it is possible to store the attachments in there via NFS?
Jun 16, 2011
Anonymous
Hi,
Is the performance of the Wiki Server impacted if we attach documents (PDF, doc, ppt etc.) to a wiki page? If yes, in what way the performance will be impacted for example, in terms of high page call-up times, server unavailable error 503 etc.,?
Can you please share any link where the impact of the wiki server is considerable by having attachments to the Wiki page for a multiple wiki space scenario within the server?
Thank you in advance.
Feb 09, 2012
Anonymous
Hi,
is there a way to write in log file if someone is deleting an attachment in confluence? In my company it happens a lot that some images failed to load in confluence and nowbody knows why. I think it would be interesting to see which attachment has been deleted.
Thanks
Add Comment