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

Hi Alex,

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

Best regards,

Peter

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

You need to edit the exportDescriptor.properties 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 'exportDescriptor.properties'. 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
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 Jul 10, 2018 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 ...

812 views 23 12
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