We would like to move our application data from /var/atlassian to /opt/atlassian (new LVM mount).
Can someone provide information on how to do this? I assume I cannot simply copy the directory.
Thanks in advance for any help.
Actually, you almost can "just copy it".
Stop Jira and make the copy. Make sure you retain (or recreate) all permissions and ownership when you copy.
Go to the Jira installation and find /atlassian-jira/WEB-INF/classes/jira-application.properties - edit that and change the home directory line (it's likely to be the only one in there). If it is blank though, leave it alone, and go instead to /bin/ and go through all the .sh files to look for where the home directory is set.
Restart Jira. Check the system information page to ensure it's got the new path. You don't even need to re-index.
No, you're right, we shouldn't run Jira as root.
The original install usually tries to create a new dedicated user for running Jira with, and that user should own all the installation and data files, as well as running Jira. (There's a mix of permissions on my systems but 750 for all the data should work fine with the dedicated user as the owner)
Do you have such a user? How do you normally start Jira?
Looks like BitBucket has an environment variable, BITBUCKET_HOME, which can be set in the file
Or .bat for Windows. Of course, I'm using version 6.7.1, so a different version might have a different solution. Thanks for the tip.
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events