Export/import a part of a confluence space

I try to export a part of my confluence space.

I reach the export page, XML option and I want a custom export.

Our space contains at least 4000 pages, the custom export does not start I cannot select any pages I need to export.

(error message :  Error Loading Pages - An error was encountered loading page for the space WW. Please contact your administrator for help. Gateway Time-out error: url=/wiki/spaces/exportspacetree.action params=key=WW)

 

Is there any other adds on/ tool ..... I could use to export in XML

 

 

1 answer

Hi @Céline Delacourtie,

When the space is very large, it’s a very time-intensive operation to build the page tree of pages in the space. It can take3-5 minutes or more before it appears so that you can make selections.

The Network and Connectivity troubleshooting Guide offers some suggestions and additional information about Gateway Timeout errors, as does this 2014 Answers post

The Confluence Command Line Interface (CLI) add-on provides actions like exportPage, exportSite and exportSpace to do a page, space or site export to XML, HTML or PDF format. It may too encounter a Gateway Timeout error, but at least you could then break it into multiple “chunks”, each doing a subset of your spaces.

The syntax of using the CLI is pretty simple. When you’re building lots of commands, I’ve found it helpful to build a temporary Confluence page that has a Space, Pagetree or Children macro on it to give me a list of what I want to work against which I can then edit and manipulate to turn it into the CLI commands you need. You can also use the getPageList or getSpaceList commands to get a list of pages and spaces which then are the “target” for your other CLI actions. The getPageList and getSpaceList accept a regular expression that can be helpful to determine which pages or spaces to select.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Confluence

Three common content challenges + how to manage them

An efficient enterprise content management system, or ECM, is a must-have for companies that create work online (cough   cough, all companies). If content calendars, marketing plans, and bu...

41 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you