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: 

Automatically PDF Export

Ramin Schadmehri
May 28, 2013

Hi All,

is there any possibility to export a page or a complete space in .pdf format automatically, for example every day/week???

Its important for the administators, because the documentations about our database system is in confluence. so if we got database failure, we can't use confluence and read our documentations.

To export the pages (spaces) manually is not comfortable enough for us.

Best regards,

Ramin

3 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

3 votes
Answer accepted
MatthewC
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.
May 28, 2013

You can do it (for a page export) via an external script and accessing confluence via HTTP requests.

wget http://servername/spaces/flyingpdf/pdfpageexport.action?pageId=xxxx -O mypage.pdf

Where xxx is your known page ID. You could probably do the same via a space export to PDF. I've got it on my "to-do" list to create something like this but via a plugin.

One day... ;-)

@bhushan - The backups are certainly something you should do but are not a great stratgey here. WHat if COnfluence is down because the databases are down? You can't restore a backup to a system if there is no working system. You'd have to install a new DB, restore DB, repoint confluence & read data. Not easy to do if they data centre had been disabled.

Exporting to a PDF is safer because it can be stored locally or on redudancy file storage

MatthewC
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.
May 28, 2013

The space export isn't quite so simple as it requires an atl token. You'd have to login & get a token back to do this the same way

http://servername/spaces/flyingpdf/doflyingpdf.action?key=myspacekey?synchronous=true

0 votes
Bob Swift
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.
May 28, 2013

Confluence Command Line Interface has the exportSpace action that support PDF or other forms. Automate using a job scheduler or, even better, using Bamboo and CLI Plugin for Bamboo.

0 votes
Bhushan Nagaraj
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.
May 28, 2013

Hi Ramin,

Do you have a backup strategy in place? If your database fails, you really should be able to recover your whole instance of confluence from a previous xml backup.

https://confluence.atlassian.com/display/DOC/Production+Backup+Strategy

https://confluence.atlassian.com/display/DOC/Configuring+Backups

https://confluence.atlassian.com/display/DOC/Site+Backup+and+Restore

Cheers

Bhushan

TAGS
AUG Leaders

Atlassian Community Events