Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

How to take backup using rest api for Jira service management

I wanted to know about how to take backup using Rest API or through Script for JSM.

I have tried to take backup using python script also though automation rule but it gives an authentication error some error codes like 401 etc.

Is there any possibility to take Jira backup using code or through Rest API or there is any limitations for that.

Please provide answers with steps if anyone tried above method and it's running successfully.

3 answers

1 vote
Vish Reddy _Revyz_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Oct 12, 2023

Hi @harish_thakare 

You have two broad options for backup & restore

  1. DIY 
    1. Use Atlassian Private API's to automate backup - https://bitbucket.org/atlassianlabs/automatic-cloud-backup/src/master/   Note these are private API's which may or may not work for you
    2. Use the public API's documented here - https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/#version
  2. Use a marketplace app

I am part of Revyz, we have a Jira backup and restore solution, it helps you with more than backup & restore i.e.:

- Backup & Restore

- Configuration Management

- Site Cleanup / Optimization

- Site Analytics

 

We are working on a similar app for Confluence. If you are interested I can enroll you as part of our beta program!

 

Also note in either of the cases, backing-up data is relatively easy, but restoring data back is hard, do have plan to restore data back!

Thanks

Vish

Hi @Vish Reddy _Revyz_ ,

Thank you for the response, We will look into it.

1 vote
Mohamed Benziane
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Oct 05, 2023

You want to create backup automatically ? If so, check this KB https://confluence.atlassian.com/jirakb/automate-backups-for-jira-cloud-779160659.html

Hi @Mohamed Benziane 

Thank you for the response, but with respect to automation rule i have tried with global authentication rule with API token and web hook url but it's throwing an authentication error. as mentioned in above question

Hi @harish_thakare 

 As far as I know, unfortunately, taking a full Jira backup using REST API or thorough scripts directly is not a supported method. As it stated in Jira documentation: “The Jira REST API enables you to interact with Jira programmatically. Use this API to build apps, script interactions with Jira, or develop any other type of integration.” As you can see there is nothing said about backup. Here is the full documentation - https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/#about 

 As an alternative, to back up your data you can use any of Jira Backup Manager or a third-party backup and recovery tool that you can find on Atlassian Marketplace. 

 Btw, I work at GitProtect, a backup and Disaster Recovery software company, and we provide backup for Jira Cloud, Jira Work Management, and Jira Service Management. You can find out more about our solution on Atlassian Marketplace: https://marketplace.atlassian.com/apps/1228719/gitprotect-io-backups-for-jira-cloud?hosting=cloud&tab=overview 

Hope this answer will be useful for you,

Daria

Hi @Daria Kulikova_GitProtect.io_ 

Thank you for the response, will look into it.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events