The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

New API Endpoint for Confluence Cloud Backup

Michael
Contributor
February 10, 2025

Powershell 

Does anyone have the latest API endpoint for triggering Confluence Cloud backups via REST API? The old /wiki/rest/obm/1.0/runbackup no longer works. Looking for a way to automate backups using an API.

Thanks in advance!

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Jonas Krimmer
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 11, 2025

Hi @Michael,

For our Confluence instance, the old /wiki/rest/obm/1.0/runbackup API endpoint still seems to work with the Powershell script backup-confluence-api-token.ps1 if you replace

$backupReady = $statusContent.alternativePercentage -eq "100%"

by

$backupReady = $statusContent.alternativePercentage -eq "100"

i.e., if you remove the '%' that used to be part of "$statusContent.alternativePercentage". However, note that "alternativePercentage" only takes the values 0 and 100.

This snippet can be found in line 54 of backup-confluence-api-token.ps1

I hope this still helps.

Kind regards,

Jonas

Johannes Heinzl _SPG_
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 8, 2025

In addition

 

  • My powershell TLS request said it failed so i set the version to TLS 1.2 right in the beginning
  • I also saw a responsecode 406 after the first run seem to be working - there i remembered that you can only trigger a backup only each 24h but it is actually available for download - so a try catch helps here as well in case the script needs to be re-executed

 

...

$headers = @{
"Authorization" = "Basic $auth"
"Content-Type" = "application/json"
"Accept" = "application/json"
}

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

...

try


{

    # Create a Confluence Cloud backup

    $backupResponse = Invoke-WebRequest -Method POST -Uri $backupEndpoint -Headers $headers -Body $bodyjson

    # This will only execute if the Invoke-WebRequest is successful.

    $statusCode = $backupResponse.StatusCode

} catch {

    $statusCode = $_.Exception.Response.StatusCode.value__

}

# Check if backup creation was successful

if (($statusCode -eq 200) -or ($statusCode -eq 406)) {

    # Wait for the backup to be ready

    $backupReady = $false

...
0 votes
Fabio Racobaldo _Catworkx_
Community Champion
March 26, 2025

Hi @Michael ,

did u read the following article https://confluence.atlassian.com/cloudkb/automate-jira-confluence-cloud-backups-1488597169.html ?

It seems to be available just for enterprise license.

Hope this helps,

Fabio

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events