Forums

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

Jira Index Backup - Recover from Command Line

Mike Wise
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 28, 2019

Is there a way to deploy a Jira index back from the command line? My assumption is that the ZIP file containing the backup can be exploded in the <JIRA_HOME>/caches/indexes directory. 

Is there anything other than this step that is done when when using the restore index option in this Jira interface?

1 answer

0 votes
Andy Heinzer
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.
January 30, 2019

To the best of my knowledge there is not a way to recover an index from the command line.  The REST API for Jira does not have this ability yet.  Furthermore, you should not expect to be able to simply replace the files on your filesystem to affect this change.  

The documentation in Recovering your index explains that this has to be done by going to the Indexing page in your browser, selecting the file itself, and then click recover on that page.  The reason you can't just replace the files directly on the filesystem is because Jira is using a number of different system caching methods.   Jira is not expecting those files to be manipulated external to its own processes.  By following these steps, it allows the application to know these are changing, and in turn perform a followup check on the indexes and changes since the swap to reconcile any differences.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events