Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to change the attachment path?

Deleted user October 24, 2019

I have read that it's not possible but is there any config-file or something where it is possible in Version 8.3.0? 

The attachments should be stored on a network drive, because there are some very big ones in the system. 

Symbolic links are not the right solution for us because the data is still on our server in the home directory.

 

Thank you in advance for your help.

 

Regards,

Stefan 

1 answer

1 accepted

1 vote
Answer accepted
Sloan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 24, 2019

Hi Stefan

A symlink is the only possibility following the Attachment documentation; In Jira 8 there is no other way change the path: https://confluence.atlassian.com/adminjiraserver/configuring-file-attachments-938847851.html

Here is Atlassian KB articlefor creating a symbolic link: https://confluence.atlassian.com/jirakb/change-the-attachments-directory-location-for-jira-server-237569020.html

Symlinks are your best bet.

Best regards
Niklas

Sloan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 24, 2019

Regarding

Symbolic links are not the right solution for us because the data is still on our server in the home directory.

If you set up the symlinks correct the data is only displayed where the symlink is, but the data is actually saved at the remote directory. It still saves you storage on the Jira server.

Deleted user October 25, 2019

Hi @Sloan N_ B_ ,

 

thank you for your answer.

Do you know how I have to set up the symlink? 

I tested it with the following: mklink /J Link Target

The Link-folder seems to have the same size as the Taget-folder.

 

Thank you

Stefan

Sloan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 29, 2019

Hi Stefan

Maybe it is displaying the properties of the remote folder, I am not entirely sure?

mklink doesn't sync directories but sets up a symbolic link. For applications this symlink seems like a file or directory but it only links to the target. The data is not being duplicated. 

Here is Microsofts documentation: https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/mklink

Under "Feedback" you find some more resources.

Regards
Niklas

VVor December 14, 2021

I did a test with moving Jira attachments folder to a network location using Windows  symlinks.
I weren't able to link just an attachment folder, only the whole JIRA_HOME directory (otherwise Jira didn't start).

After linking %JIRA_HOME% this Jira instance became unstable - network latency and etc sometimes collapsed it and I had to repair and restart it manually.


May be some one had a better experience? Can you share it?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events