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: 

Export data confluence in HTML automatically

Macors Romain
April 22, 2024

Hello every one,

I use Conluence 8.5.5 data center on premise

I would like to export data from a space in HTML automatically

For date, i go to the space, click on "tool space" than "manage content" than "export" and i choose HTML

It's ok and it's what i want but i would like the same result automatically (not to go manually choose option)

The idea is to have access to my data in "degraded mode" if my server is down

Thank you for your help

Sorry for my english, i'm belgian :)

3 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Reshma Begum {Appfire}
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
April 22, 2024

Hello @Macors Romain ,

Thanks for reaching out!

With Confluence Command Line Interface, you can export the spaces in bulk\individual space using the exportSpace action. Below is an example for your reference:

--action exportSpace --space "zexport" --file "build/output/export/exportSpaceHtml.zip" --exportType "HTML"

To automate this script, you must write a script along with our CLI action, which helps you schedule the job automatically.

Hope this helps!

BTW, I am from Appfire, a vendor of CLI apps.

Thanks,

Reshma

0 votes
Sebastian Breitkopf
June 20, 2024

Hi @Macors Romain 

I was facing the same challenge and able to solve it using the bash script mentioned here: https://jira.atlassian.com/browse/CONFSERVER-40457

Exporting a space (HTML) worked for me out of the box without 3rd party apps. You can use a simple cronjob to automate the space export and add a copy job afterwards to move the exported space to your desired place.

0 votes
Jamie Rogers
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
April 22, 2024

Hello

I don't believe there is a way to do this natively in Confluence aside from the manual method you described above. Atlassian recently added REST API options to export a space (or entire site) as an XML export - so it theoretically could be automated; but this is not the same as HTML as the XML exports are intended to be restored into another Confluence instance. 

There is a Confluence 3rd party app known as Confluence CLi that has the ability to export spaces and automate it - but this is not something I have used personally so it might be worth checking it out.

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events