Skip to end of banner
Go to start of banner

How to use restoreExport CLI action

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

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

  1. In the source instance, using exportSite action, export the complete site backup in a zip file as shown in the example below.

    --action exportSite --file "exportSite.zip"
  2. The exported backup file will be present under the path /home/export directory of the source instance.

  3. Move the backup file to /home/import folder of the target instance.
  4. Restore the backup or import the exported zip file site from the Jira home/import directory using restoreExport action as shown in the example below.

    --action restoreExport --file "exportSite.zip"


    Note

    Please note that the above action will erase all the old 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 roll back changes.
It is recommended to test this scenario in a non-production environment or run the action with the --simulate parameter, to verify the behavior before deploying it on a production environment.

  • No labels