Confluence Backup Authentication Errors
Hello everyone,
I´d like to automate the backup of our Confluence Cloud instance. I saw a thread at Atlassian Community where a script was recommended. I followed the steps mentioned there, created an API-Token, added all relevant information, made sure my firewall is open but I always receive an error response and I dont really understand where I failed to set it up correctly.
I wanted to use the script on a linux VM on a cron job.
I would appreciate if you could help me in this case.
Looking forward to hear from you.
Best wishes
Marcel
Comments (5)
-
-
- changed status to open
-
reporter Hello Dario,
I already fixed it.
I am sorry I forgot to close the issue.
The problem was that in the PowerShell version of the script the $account variable wasnt correctly. I filled it in like it was mentioned in the example. But apperently you dont have to use whateverproceeds.atlassian.net, you have to use ‘whateverproceeds’ to make it work. I found out that on a certain point in the script the variable was modified again into something like whateverproceeds.atlassian.net.atlassian.net and thats why it didnt work.
Anyways thank you for your reply and have a great week :)
Best wishes
Marcel
-
reporter - changed status to resolved
fixed
-
- changed status to closed
- Log in to comment
Are you sure you created an API Token and not an API Key? The error returned is 401 unauthorized.
for details see: https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/