Python Script or REST API Endpoints for Space Backup and Restore in Confluence Data Center

surendra prabha
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!
September 7, 2024

I am working with Confluence Data Center and using a local PyCharm setup to automate space backups and restores.

Could anyone share Python scripts or recommend REST API endpoints for:

1. Backing up a Confluence space to my local machine

2. Restoring a space from a local backup

I am looking for solutions that integrate with Confluence Data Center via Python. Any help with REST API documentation or sample scripts would be appreciated!

1 answer

0 votes
Clark Everson
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 30, 2024

Hi @surendra prabha 

Welcome to community!

To my knowledge for using python with confluence it would need to be something accessible in the API. I do not believe space backups are something that can be accessed via API. If your system has ScriptRunner you could make a scriptrunner job that exported confluence spaces on a set amount of time to an external machine. It would be recomended to do this if needed to something like AWS rather than a local machine

In regards of restoring a space from a backup this would need to be done by a Confluence System Admin

Best,

Clark

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events