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.

0 vote
Dieter Community Champion May 04, 2012
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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,326 views 14 20
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot