Use of API Token account for backup
Issue #18
resolved
Hi,
I try to use an API Token key for backup but I'm stuck at the final step because the backup file is not accessed within the API path and I got a 401 on /plugins/servlet/export/download/ link.
Since I use 2FA on my account I have to create a new specific admin account without 2FA to have backup ? Do you see another way ?
Comments (3)
-
-
Hi @toubib_lag ,
Today I had some time and I added a Jira backup shell script that uses API Tokens auth instead:
-
- changed status to resolved
- Log in to comment
As mentioned in following links: 1) You cannot use API Token to authenticate against the /session endpoint: https://jira.atlassian.com/browse/JRACLOUD-46830. 2) "If you use two-step verification to authenticate with your Atlassian Cloud site, then your script will need to use a REST API token to authenticate.": https://confluence.atlassian.com/cloud/api-tokens-938839638.html
I believe you are right, you need an account without 2FA, unless you use some other way to authenticate (e.g. use a simple curl simple auth call and grab the cookie or similar... not sure it can still be done but it used to work)