How to take backup using rest api for Jira service management

harish.thakare
Contributor
October 4, 2023

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.

4 answers

1 accepted

Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 7, 2024

Hi all,

For the sake of other users that might find this question:  The REST API is not designed to create a complete backup of the site.  The ability to automate the backups/restores is something that is planned to be overhauled per CLOUD-6498

From that page:

Automatic backup scheduling IS on our list, although not in the very first horizon, as we are looking to completely overhaul the backup/restore experience. Especially for those that have very large datasets. With that said, there will be a mechanism available to automate this yourself, until we build that functionality into the UI.

Click the link, click Send request to join, and we should get you in within 24 hours to review our strategy and provide feedback as we go.

In the meantime, there are other marketplace solutions available that might be able to help.

Andy

 

2 votes
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.
October 5, 2023

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

harish.thakare
Contributor
October 8, 2023

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

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.
October 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

harish.thakare
Contributor
October 16, 2023

Hi @Vish Reddy {Revyz} ,

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

0 votes
Daria Kulikova_GitProtect_io
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 6, 2023

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

harish.thakare
Contributor
October 8, 2023

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
Product Admin
TAGS
AUG Leaders

Atlassian Community Events