Independent product studio · Swedenhello@karelialabs.com

Guide

How to copy a whole space or a page tree in Confluence Cloud

Short answerConfluence Cloud can copy a page together with its child pages, one tree at a time. A whole space has no copy button of its own. Treewright copies a page tree or all pages of a space in one job, shows a preview first, rewrites the links to point at the copies and keeps a report of every change.

Updated

What Confluence does by itself

Confluence Cloud can copy a page with the pages below it. Open the page's ••• menu and choose Copy; the copy dialog lets you include the child pages and pick where the copy goes. It costs nothing and is often enough for a small tree.

After a built-in copy, open a few of the copied pages and check the links and the macros that show other pages. Some can still point at the original pages. Fix those by hand before people start working in the copy.

A whole space, without an app

Confluence Cloud has no button that copies a whole space. Copying an entire space is a long-standing request on Atlassian's public tracker (CONFCLOUD-3191). Without an app, the usual way is:

  1. Create the new space yourself and set its permissions.
  2. Copy each top-level page of the old space, with its child pages, into the new space.
  3. Check the links in every copied tree, including links from one tree to another.

Space settings, permissions and blog posts do not come along this way, and a large space means many copies and a lot of link checking.

With Treewright: copy a page tree in five steps

Treewright: Copy Page Tree, Space & Templates for Confluence shows what will be created before anything exists, points the links in the copy at the copied pages, and ends every job with a report.

  1. Open the page at the top of the tree, open its ••• menu and choose Copy page tree….
  2. Choose the destination space and, if you like, the page the copy should go under.
  3. Choose what comes along (attachments, labels, page properties, page restrictions) and how titles are made: keep them, add a prefix, or find and replace. If a title already exists, add a number such as "Plan (2)" or stop.
  4. Choose Preview. It lists every new title, the copy method and any content that cannot be copied. Nothing is created yet.
  5. Choose Start copying. The job runs in the background, so you can close the window and follow it under Apps > Treewright > Jobs.
Treewright copy dialog with a preview of new titles, conflicts and pages that can't be copied
Preview before anything is created

What happens to the links

After the copy, Treewright maps every original page to its copy and rewrites the copies: page links, Include Page, Excerpt Include, Children Display and Page Tree macros, page URLs including short links, anchors, and page ids in macro queries. Links to pages outside the copied tree keep pointing where they did. The job report lists every rewritten link, before and after, and is kept for 90 days.

Copying a whole space

On the Copy a space tab under Apps > Treewright, you can copy all pages of a space in one job, into a new space or into one that already exists, with links rewritten across the whole space. It copies pages, not the space itself: space settings, space permissions, blogs and the theme are not copied. A new space gets Confluence's default permissions for the person who creates it, so review them afterwards. Creating a new space needs Confluence's permission to create spaces; without it, copy into an existing space.

Good to know

  • One job copies up to 2,000 pages. For a bigger space, leave pages out or copy it tree by tree.
  • Whiteboards, databases, folders, smart links used as pages and archived pages cannot be copied. They are listed in the preview and in the report.
  • Treewright acts as you. Pages you are not allowed to see are not copied.
  • When Confluence cannot copy a tree in one step, pages are copied one by one, roughly one to two pages per second.
  • A stopped or failed job can be resumed. Pages that were already created are reused, never copied twice.
  • To start every new project from the same tree, save it as a template with fields such as {{Client}} and fill them in a short form.

FAQ

Can Confluence Cloud copy a whole space?

Not with a built-in button. You can create a new space and copy each top-level page with its children into it by hand, or use an app that copies all pages of a space in one job.

Are links updated when I copy a page tree?

Check them after a built-in copy. Treewright rewrites links between the copied pages, and macros such as Include Page, to point at the copies, and its report lists every change.

Does a space copy include permissions?

No. Treewright copies the pages with their hierarchy and the attachments, labels and properties you choose. Space settings, permissions, blogs and the theme are not copied.

What does Treewright cost?

It is free for up to 10 users. Larger sites see the price on the Atlassian Marketplace and can evaluate the app for 30 days, the Marketplace default for Cloud apps.

More guides

More from Karelia Labs