How to Export-Import Confluence Pages and Spaces

My team is currently ending our Confluence evaluation server license and have purchased a regular server license. We have opted to NOT adopt all content from our evaluation server license and will 
"wipe the slate clean" to build a new Confluence site. There are select spaces and pages that I would like to export from our evaluation site to the new, permanent site. I have full administrator permissions. I am practicing by exporting a desired page on my evaluation site. The export worked as described in the user guide, where it save the entire contents of my page to a zipped archive of XML files.The intention, from this point, is to import my page/space into another Confluence site, which will be our new, permanent site. I'm not clear how to complete the import process on the other side.

The user's guide confuses me as to which instructions pertain to which importing process. I am needing to know how to import a space/page from one Confluence site into another, not import content from an MS Word doc. All that I see are instructions for importing a text file, but these instructions come under the heading of "Importing Pages from Disk," which is probably not what I need to do. 

I did try to follow the import text files instructions via the Space tools > Content Tools, choosing to Import. It says to "Type your directory path into the Import directory box. I tried typing the path of my zip file and selected other relevant options, such as Overwrite existing page. When I select to import, I receive an error message stating "The directory specified does not exist, or cannot be accessed."

From this point, I am lost. Can you provide specific instructions for how to import a space/page from one Confluence site into another? Thanks.

3 answers

2 votes

Hi Clay, 

I believe what are you looking for is on this link.

You just need to:

  1. Choose the cog icon, then choose General Configuration under Confluence Administration
  2. Choose Backup and Restore in the left-hand panel.
  3. Choose Choose File and browse for the backup file.
  4. Uncheck Build Index if you want to create the index at a later stage.
  5. Choose Upload and Restore.


Renato Rudnicki


1 vote

Hi @David Lunsford [Agency Consulting Group]

For you question: "What if I want to import the content of space A into space B from an xml backup? Space B exists as a shell. "

This is not possible directly on a XML backup file. The only option in this case is to merge the content on a space before the export to the XML backup. In other words, import both space A and B to a instance, merge the content, and export one of them again.



Thanks, Renato. I tried to follow the instructions you provide, but I encounter an error. When I choose Upload and Restore for the file I have chosen (it's one of the XML zip files I had exported), I receive the following error:

The following error(s) occurred: 

  • A space with the key '~admin' already exists. Please delete it before restoring a space with the same key.

I don't know what this means. Any suggestions? Thanks.

Hi Clay, First of all, make sure you have a backup of your database. It seems you have a duplicate key related to admin space. Follow the steps below: 1 - Create a new admin 2 - Try to delete the space following this link: 3 - Import your backup xml again Regards, Renato Rudnicki

* create a new admin user :)

What if I want to import the content of space A into space B from an xml backup? Space B exists as a shell.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

1,561 views 26 14
Join discussion

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