Setting up Automatic Backup generation for Jira/Confluence

Andrew Thomson April 15, 2019

Greetings,

 

I'm attempting to configure the scripts at https://bitbucket.org/atlassianlabs/automatic-cloud-backup

I start with the backup-jira.sh script and enter the details at the top

EMAIL=my email address
PASSWORD=my password
INSTANCE=mycompany.atlassian.net
LOCATION="~/Downloads/backup_test/"

but the script fails once run.

The jiracookie file gets created but then I just get the error message

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><status><status-code>401</status-code><message>Client must be authenticated to access this resource.</message></status>

repeating indefinitely.

 

I believe it is failing on the line

BKPMSG=$(curl -s --cookie $COOKIE_FILE_LOCATION -H "Accept: application/json" -H "Content-Type: application/json" https://${INSTANCE}/rest/backup/1/export/runbackup --data-binary '{"cbAttachments":"true", "exportToCloud":"true"}' )

 

Is there a specific permission level required to access this?

1 answer

1 accepted

0 votes
Answer accepted
Andrew Thomson April 15, 2019

Please disregard this question.  I found a help page that states this is no longer a supported authentication method.

Suggest an answer

Log in or Sign up to answer