Hello!
I’m looking for a way to automate the export of content from Confluence Cloud via API in XML format. My goal is to regularly back up either the entire space or a specific space/page tree without having to manually initiate the export through the Confluence UI.
Is it possible to trigger an XML export using the Confluence REST API (or any other API)? If so, could you point me to the correct endpoint or documentation? Ideally, I’d like to automate this on a schedule (e.g. every night) using a script or integration.
Thanks in advance for any help or direction!
Hi @Andrew Mose
Welcome to the community.
The API for Confluence has no endpoint for exporting spaces, there is an open feature request for this, see; CONFCLOUD-40457
Got it, thanks! Is there any known workaround or best practice to export a full space into a single XML file, similar to this format:
Example
What I’m looking for is:
One full XML file per space Each page entry includes:
Page title (name)
Page ID
Main image (if exists)
Full content with formatting Embedded images/media Basically, a full export of the space in a machine-readable XML format that can be processed further.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Andrew Mose
No as there is no endpoint available, the only option is within the GUI
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.