How to automate backup for new version of JIRA Cloud

Hi,

 

I need to perform automated backups for a JIRA Cloud instance which seems to have a new version. A path as seen in this script fails with a 404 error. The path looks like this:

https://INSTANCE_NAME/rest/obm/latest/runbackup

 

When asking the Atlassian support for help, I got this answer:

For instances that are in the new platform, the endpoint will be as following:

https://INSTANCE_NAME/rest/backup/1/export/runbackup

 

However, this does not work out of the box, I get a 500 error with this error message: "If there are no known problems and your page hasn't appeared again in 5-10 minutes then please create a support request for assistance."

I tried it with this path several days now and still get the same error message.

When I change the credentials to something wrong, I get a 401 Unauthorized error, as expected.

Unfortunately the support could not help me any further.

Was someone able to successfully access the backup functionality using this link for a newer version of JIRA Cloud? Am I doing something wrong?

 

Best,

Jonas

2 answers

2 accepted

1 vote

Hello Jonas, 

The backup script you are using does not currently work with our new Cloud platform, which you are on.

Although the script is unsupported by Atlassian, the endpoint is, so we have reported this as a bug: JRACLOUD-67169

The issue right now is that from the new platform, the endpoint is not accessible from outside. Once this is resolved, then you will be able to automatically create backups using this script. The workaround, for now, is to create the backups manually using the UI.

Do let us know if you have any questions about this!

Kind Regards,
Shannon

Hi Shannon,

Thanks for your answer! This is very useful information. I'll perform the backups manually for now until this problem is resolved.

Best,

Jonas

Glad I could assist, Jonas!

Take care and have a pleasant weekend. :) 

Kind Regards,
Shannon

1 vote

@Jonas Krucher

The endpoint is now available to be called from a script. Please see the workaround we have added to JRACLOUD-67169

 

Cheers,
Dario

Hi Dario,

Thank you very much!

Best,

Jonas

@Dario BonottoSo is

https://INSTANCE_NAME/rest/backup/1/export/runbackup

the new way to go or is it just a workaround.

@Harold Dost

That's the new endpoint in the new infrastructure.

The other endpoint was the one in use for the old cloud infrastructure. 

However, since taking backups from scripts in not officially supported there may be other changes in the future.

 

I hope this helps

You are very welcome! :) 

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira Service Desk

How the Telegram Integration for Jira helps Sergey's team take their support efficiency to the bank

...+ reading Fantasy). The same is true for him at the bank he works for: Efficiency is key when time literally equals money. Read on to learn how Sergey makes most of the time he has by...

199 views 0 2
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you