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