Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Backup Jira System and Restore another Jira Server with automation ( powershell or sh)

brk gsw July 25, 2023

Hi,

I have two Jira Servers. Jira Software (Data Center)

I want to export a project to another Jira server. For this aim, under the system, I am restoring the system. The backup file is saved on ": /var/atlassian/application-data/jira/export"

Secondly, I am saving this file to target Jira server's " /var/atlassian/application-data/jira/import" folder. 

After saving to target Jira server's import folder, I am using "Project Import" . This support to choose desired project on backup system file.

For example on source Jira Server there are tree projects. After restoring system, I am saving this backup file to target Jira Server's import folder. Later, when I use "import Project" section, Jira ask me "you have 3 project on your backup. You can choose whatever you want".

After choosing desired project. I gain success on export import operation.

MY QUESTION is How can I automate with script? It will be powershell or sh.

I need a script that export system or specific project on a target Jira. Or It will be save the backup file to a file on determined target.( For example destop etc) 

I need a second script that send the backup file to import the target Jira server.

 

To sum up I want to export and import project within the different Jira servers with aoutomation. 

 

I need Rest api or powershell script or sh file. 

 

Thanks.

 

 

2 answers

2 accepted

0 votes
Answer accepted
brk gsw August 2, 2023

Hello Artur, This post for backup jira Cloud. I need a Jira server backup script. 

 

Do you have any suggestions?

brk gsw August 2, 2023

Acccording to Pierangelo Repetti answers the  "backup-jira-api-token.sh" does not available.

0 votes
Answer accepted
Artur Moura
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 31, 2023

Hi @brk gsw

Welcome to Atlassian Community!

I found this post which I believe should help you with your automation.

Please let us know if it helps.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events