How do you migrate the Jira attachment directory to a different location?

The filesystem that holds the all my Jira attachments is starting to fill up. I'd like to attach a new storage device and use that for attachments but I don't want to have to update every issue with the new location of its attachments. Is there an easy way to do this?

Example:

Existing Attachment Path: /opt/atlassian/jira443_home/data/attachments

Proposed Attachment Path: external_host.lab.foo.com:/export/VolGroup00-jira_attachments

2 answers

Hi, I found this documentation about the attachments:

http://confluence.atlassian.com/display/JIRA/Configuring+File+Attachments#ConfiguringFileAttachments-Advancedconfigurations

It looks it isn't possible to change it. This note was below:

Choosing a custom Attachment Path

-If you upgraded JIRA with an XML backup from a JIRA version prior to 4.2 and used a custom directory for your attachment path, you can choose between using this custom directory (which cannot be edited) or the default directory for your attachment path location. However, once you switch to using the default directory, you can no longer choose the custom directory option.

-The default directory location is the data/attachments subdirectory of the JIRA Home Directory.

Hi ,

Even if you have decided to use the standard attachment path you could mount your remote directory under /attachmentdata, copy all attachments there, remove standard directory data/attachments and create a symlink from data/attachments to /attachmentdata.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

23,198 views 2 7
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you