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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

Mission-critical battery manufacturer fulfills FAA software requirements with Commit Policy Plugin

EaglePicher Technologies is a leading manufacturer of battery systems for diverse industries like defense, aviation, space or medical. As they operate in highly regulated industries, keeping a clear ...

182 views 0 2
Read article

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