Copying a space - Ondemand

Does anyone have step-by-step instructions how to copy a space using Confluence OnDemand. There is some excellent documentation on copying a space into a new site - but what I want to do is to copy a space (so that I can capture the audit trail, frozen at a specific moment in time) and then archive it as part of a formal audit trail. I will then continue developing another version of the same space, using the same site.

The stumbling block is the error message that I get when trying to upload the exported space back to the original site: "A space with the Key XXX already exists".

Prior to uploading, I edited entities.xml to amend all reference to the old spacekey and changed them to a new, unique, spacekey. But I still got the error message.

Unfortunately, using the download version is not an option for me, so I can't use the copy space plugin.

4 answers

1 accepted

1 vote
Answer accepted

Hi Alex,

Did you edit the other files in the zip file too?

Best regards,


Ahh ... no. Just the xml. What other files do i need to edit?

You need to edit the too, it also contains a spacekey reference.

Sorted, thank you.

You might find that copySpace from Confluence Command Line Interface (CLI) will fit your use case more easily than save/restore.

Thanks for fast response - this is a one-off, so I'm quite happy to do it manually on this occasion.

Hi, I'm also trying to do this. I've done the following:

  1. Done an .xml export of the Space
  2. unzipped and edited the entities and the exportDescriptor files to change the name of the Space key
  3. re-zipped the file
  4. imported the zip file

However I got the following error


"The following error(s) occurred:

The zip file did not contain an entry ''. It contained: Confluence-space-export-072353-6.xml/attachments/,"  (this error went on for sometime listing attachments).

Is there a step I've missed or anything else I need to do to import a copy of the space?

Many thanks!



This was helpful! Thanks!

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

1,467 views 4 13
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