When it is required to move data from one Jira instance to another instance, Jira Command Line Interface (CLI) provides restoreExport action to import the data into the new instance that has been exported from an old Jira instance. This article explains how to achieve this use case using restoreExport CLI action.
Instructions
In the source instance, using exportSite action, export the complete site backup in a zip file as shown in the below example:
--action exportSite --file "exportSite.zip"
The exported backup file stores under the path: /home/export directory of the source instance.
- Move the backup file to /home/import folder of the target instance.
Restore the backup or import the exported zip file from the Jira home/import directory using restoreExport action as shown in the example below:
--action restoreExport --file "exportSite.zip"
- Please note that the above action erases the whole data and projects in the target instance and will replace it with the new data and projects according to the backup file.
- Make sure to take a backup of both source and target instances for any rollback changes.