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
Community moderators have prevented the ability to post new answers.
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.