It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Restore Jira XML via bash

Colm McGrath Dec 09, 2016

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


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

2 votes
Answer accepted
Jonas Andersson Dec 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:

Good luck!

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in Off-topic

Disney Live Action Reboots: Are you for or against?

Happy Friday Everyone! Today marks the international release of Disney's live action version of the animated classic Aladdin. I know that this movie was met with some controversy of over cast...

164 views 21 9
Join discussion

Community Events

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

Events near you