Automation Back-Up getting failed of with 401 and 403 Status.
Asked by Santhosh Raj:

I have Created a Backup Automation rule to running jira backup from Jira Automation rule.  
![Rule-builder-Automation-Jira.png](https://community.atlassian.com/t5/image/serverpage/image-id/320371i4CEF468B5A31A480/image-size/large?v=v2&px=999 "Rule-builder-Automation-Jira.png")

I did the same api token from the   
My Account --\> Manage Account --\> Security --\> Api-tokens --\> Create Token --\> Copied and used here.  

But it still shows the error.  

Used this Page as everyone has linked upon in Community.  
[Automate online site-backups for Jira](https://community.atlassian.com/t5/Jira-Software-articles/Automate-online-site-backups-for-Jira-and-Confluence-without/ba-p/1271317)   

\[Note: This is being tried in my test Jira Account\[Free tier\], but If it succeeds, I can work upon the live Jira Base.\]  

So is there anything I'm missing or is there any other ways for achieving it ?


Answers:
author: Victor Law
body: Hi [@Santhosh Raj](/t5/user/viewprofilepage/user-id/5283233)

Since you are getting HTTP 401 and 403, it is likely due to the API token you copied is not encoded as listed in the community post under the preparation section:

![Screenshot 2024-04-24 at 11.27.55?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/320373iCBCEF5B857CB02D2/image-size/large?v=v2&px=999 "Screenshot 2024-04-24 at 11.27.55?PM.png")Thank you.

comments: author: Santhosh Raj
body: Thanks [@Victor Law](/t5/user/viewprofilepage/user-id/391946) .  

I did it successfully, but I'm not able to see the backup of the file in   
System ==\> Import and Export ==\> Backup Manager.  
![Backup-manager-Jira.png](https://community.atlassian.com/t5/image/serverpage/image-id/320543i1AD20153C0235DCD/image-size/large?v=v2&px=999 "Backup-manager-Jira.png")

But the Audit logs in Automation shows success and another one shows like some limit.  
Can you explain both a bit please ?![Audit-log-Automation-Jira.png](https://community.atlassian.com/t5/image/serverpage/image-id/320545i4F2FE02F4457F14B/image-size/large?v=v2&px=999 "Audit-log-Automation-Jira.png")

1. Where to find the Backup for downloading it ?
2. Why did the same automation stops ?  

   [@Victor Law](/t5/user/viewprofilepage/user-id/391946)


author: Victor Law
body: Hi [@Santhosh Raj](/t5/user/viewprofilepage/user-id/5283233)
> Where to find the Backup for downloading it ?

It looks like the first automation request has been completed successfully. The backup should be generated and found under the Jira backup page.

Sometimes, it might take a while for the backup file to be completed and found under the Jira backup page.

If the backup generation process fails and does not appear on the backup page, I suggest reaching out to Atlassian Support, as they will have more insight and access to the backend logs for investigation.

> Why did the same automation stops ?

The cloud has a backup generation limit, and you can only generate one backup once per week.

More info:

<https://support.atlassian.com/organization-administration/docs/backup-and-restore-limitations/>

Thank you.


Tags: cloud

jira-service-management

jira-service-management-cloud