Does Atlassian take automated backups of cloud based instances?

I want to take backup of confluence cloud but I got always 401.

I am not able to do backup from this https://abc.net, I am getting always the error "Client must be authenticated to access this resource".

I am using the script from given link.

 https://bitbucket.org/atlassianlabs/automatic-cloud-backup/src/8d33935dcb6af56ca79b4db3ff012c8c7982e356/backup.sh?at=master&fileviewer=file-view-default

 

Thanks

Jai

1 answer

1 vote

Yes, they do backups, but not the ones you are trying to download.

The problem with your scrip is that it is not logging in correctly.

I am using these lines.

curl --silent -u $USERNAME:$PASSWORD --cookie-jar $COOKIE_FILE_LOCATION -X POST https://${INSTANCE}/wiki

#The $BKPMSG variable will print the error message, you can use it if you're planning on sending an email

BKPMSG=$(curl -s --cookie $COOKIE_FILE_LOCATION --header "X-Atlassian-Token: no-check" -H "X-Requested-With: XMLHttpRequest" -H "Content-Type: application/json" -X POST https://${INSTANCE}/wiki/rest/obm/1.0/runbackup -d '{"cbAttachments":"true" }' )

 

Can you once confirm what should be the URL for confluence?

 

Thanks

Jai

It's your xyz.atlassian.net

Hi Jai,

Can you kindly provide more details on what is failing?

Specifically:

  1. Which one of the 2 curl commants is returning the error 401 - "authentication failed"?
  2. Do you have only Confluence or JIRA as well (just to know if there is any reason not to call the jira session endpoint to start a session and get the cookie)?

Also, please be aware of the below bug that could be impacting you:

https://jira.atlassian.com/browse/JRACLOUD-67169

 

Cheers,
Dario

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

355 views 20 10
Join discussion

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