Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Restore Jira XML via bash

Colm McGrath December 9, 2016

Looking at some of the documentation I want to restore an XML via a bash script of simple java program.

https://docs.atlassian.com/jira/7.1.2/com/atlassian/jira/pageobjects/config/RestoreJiraData.html

 

Just wondering if anyone has been able to write a bash script of something along those lines to restore an XML from the import folder without plugins or having to even log into the UI?

 

something like:

import com.atlassian.jira.pageobjects.config

call the public class public class RestoreJiraDataFromBackdoor

 pass the path to the import folder???

Very interested to see what your thoughts are on this?

 

Thanks smile

 

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

2 votes
Answer accepted
Jonas Andersson
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.
December 14, 2016

I think the only way to do this and not using the GUI is using curl to first login, store the cookie and authentication token, then make a second call that does a post against the webserver where the restore is done:

https://jira.your.network/secure/admin/XmlRestore.jspa?filename=/path/to/backup/jira.backup.xml

Good luck!

TAGS
AUG Leaders

Atlassian Community Events