Is there a way to programatically restore from XML backup?

I'm running self-hosted JIRA(7.4.4) in a docker container. It will start up empty, however, I wish to migrate data from another JIRA instance which is backed up by XML.


However - to import this XML data, I have to:

- Docker CP to /var/atlassian/jira/import

- Go through initial setup on the JIRA instance, create a user, password, restoration method etc.. 

- Manually restore in Settings/System/Restore

 

Isn't there a way to programatically post the XML's to a REST endpoint which consumes the backup to restore from? 

Right now, my solution includes accessing the page with headless chrome(through a python script), navigate through the setup, and manually input the filename(in .zip) on the settings page. But as you imagine, this is less than ideal :) 

1 answer

What is your goal here?

Test new versions of JIRA?
Clone the server to a standy server?

 

Adaptavist has a free tool to to set up an empty application:

https://github.com/Adaptavist/avst-wizard

 

We have service scripts to test different versions of JIRA, Confluence etc:

e.g. service jira upgrade 7.4.4 7.5.0

service jira start 7.4.0

service jira upgrade 7.4.3 latest

The goal is to spin up a jira instance with docker with a specific version of JIRA, and import data from clients. For example, to set up a test environment that replicates the exact setup :) 


Hope it makes sense  

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,167 views 13 19
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot