Thursday, September 18, 2008

How to copy a confluence space

Copy Or Rename A Space - Confluence 2.9 - Confluence
Currently Confluence does not support renaming or copying spaces through the user interface. You may wish to vote towards these feature requests:

* Feature request to clone an entire space - this will enable duplication of every page, news item and comment plus space themes and colour schemes.
* Feature request to copy a page hierarchy between existing spaces.

Use The Copy Space Plugin

The best option is to install the Copy Space Plugin.

Note that this plugin is still in beta release, and is not officially supported by Atlassian.

Read the developer's notes in the Atlassian blogs.
Manually Clone Or Rename A Space

Alternatively, it is possible to manually clone or rename a space by modifying an XML backup of the target space.

Notes

* May require manually updating external links to that space.
* The instructions have been confirmed for Confluence 2.2 onwards. Users running older versions are recommended to upgrade Confluence before continuing.
* Where examples are given, they involve changing oldkey:Old Space Name into newkey:New Space Name. You need to substitute your own keys for oldkey and newkey, and your own space names for Old Space Name and New Space Name.
* When importing a space export for a space that already exists, the previous space content will be overwritten.
* Read the process in full before beginning.

Stage 1: Rename Space

1. Select a new, unique space key and name for the second space. Space keys may only consist of ASCII letters or numbers (A-Z, a-z, 0-9) and no empty spaces are allowed in the key.

2. Clone your production Confluence instance to a test server on another computer now. (For instructions, see Migrating Confluence Between Servers.) You should now have a production server and test server both containing the same data and can avoid the risk of corrupting your production Confluence instance.

3. On the test server, login as an administrator.

4. Go to Browse Space -> Advanced -> Export Space and export the target space as XML including attachments.
5. Save the space backup.

6. Open the space backup file with a zip file editor and find the file entities.xml.

7. Edit entities.xml in a text editor.

8. Do a 'Search & Replace' on the old space name as shown below. Swap out Old Space Name and New Space Name for the actual names.
Search For Replace With
[CDATA[Old Space Name] [CDATA[New Space Name]


9. Do a 'Search' for any occurrences of the old space name that occur in user content. You may wish to replace some or all of these references with the new space name. Replace Old Space Name and New Space Name with the actual names.
Search For
Old Space Name

5 comments:

Anonymous said...

Nice fill someone in on and this post helped me alot in my college assignement. Say thank you you on your information.

Anonymous said...

Brim over I acquiesce in but I think the brief should prepare more info then it has.

Anonymous said...

Hi to you all

I like your writing in this forum,I don´t know if you are into Poker Online, I stopped to see if somebody can give me a help, cause I got a free poker money bonus at http://www.english.pokersemdeposito.com/ for Titan Poker the problem is now I don´t know where to begin No limit or Fixed Mimit? wath should I Play?

Bye

Anonymous said...

Is it just me that think atlassian is a joke for creating a "enterprise" application that by default cant copy a wiki space to another? Even doe the plugin is created by atlassian no support is given. I seriously question why we spend thousands of euros every year for their shit products..

Anonymous said...

Awesome information, many thanks to the article writer. It’s understandable to me now, the effectiveness and importance is mind-boggling. Thank you once again and good luck!