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

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.

Cheers,

Rodrigo

0 vote

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.

Regards, 

Renato Rudnicki

 

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:https://confluence.atlassian.com/display/DOC/Delete+a+Space 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
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
Posted Tuesday in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

377 views 16 9
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