Jira cloud automated backup script issue

Hi all,

I've downloaded powershell script to automate Jira Cloud backups from Bitbucket.

First days it worked fine. But now it is not working for any reason. I get the following error and it reapeats indefinitely.

Could you please help me?



Invoke-RestMethod : Error en el servidor remoto: (401) No autorizado.
En C:\Users\user\Desktop\backup.ps1: 23 Carácter: 15
+ ... $status = Invoke-RestMethod -Method Get -Headers @{"Accept"="applic ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebExc
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand


3 answers

Same problem with the .sh script.

Begins to proccess without problem, but when the moment of download the file comes, it fails.

Maybe is related with some global setting or permissions.

I could'nt find a solution :(

Look this https://yourserver.atlassian.net/plugins/servlet/ondemandbackupmanager/admin


They have already a backup for JIRA!!!, any news for that? XD

Thank you Gustavo, but I need to get the automatic backup script working back.

I am running the same script on my windows 7 machine and it worked fine. Had to download powershell ver 4. can you check your powershell version C:\> $PSVersionTable.PSVersion




0 vote

Hi Diego,


If you get error 401, you are most likely affected by one the the below issues:




For the both of them the solution is to actually reset the password for your account in id.atlassian.com (you can just re-set the same password as before).


Also, please be aware that some endpoints have changed in the new infrastructure:




Best Regards,
Atlassian Cloud Support

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 Jun 14, 2018 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...

487 views 2 5
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