How to handle migration for duplicate spaces

Bhargavi Vasa
Contributor
January 15, 2025

Source:
Space Key: ABC, Space Name: Test Space

Target:
Space Key: ABC, Space Name: Test Space2

I am trying to migrate content from the source to the target space, but it is causing a duplicate key issue. I attempted to use the "Copy Space" option, but it has a limitation of 2,000 pages. I also tried copying the page content manually, but I encountered the same 2,000-page limitation.

Is there a solution to this, or how can I rename the space key to resolve the issue?

 

Confluence version for source and target - 8.5.15

2 answers

0 votes
Radek Dostál
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 15, 2025

Changing the space key on backup level is probably going to be the easiest one:

https://confluence.atlassian.com/confkb/how-to-copy-or-rename-a-space-in-confluence-169578.html#HowtocopyorrenameaspaceinConfluence-Solution3-exportthespaceandmodifytheXML

 

Otherwise you would need to copy a lot to get a "new" space to export, compared to a few .xml edits.

Khammampati Surendra
Contributor
February 3, 2025

Hi @Radek Dostál 

 

When I search for a space key in an XML document, occurrences appear in page titles, space keys (both lowercase and uppercase), groups, and links. How can I modify these occurrences?

0 votes
Rilwan Ahmed
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 15, 2025

Hi @Bhargavi Vasa ,

Welcome to the community !!

The workaround what I follow is

In Source confluence

  1. Create a blank space with new key which is not present in target space
  2. From existing space, go to parent pages and click Copy page, select Include attached files and imagesInclude child pages

    image.png

  3. Repeat the same action for all parent pages in the source space until all pages are copied to new space
  4. Go to space settings --> Content tools --> Export --> as xml in old version of confluence
  5. If you do not find export to XML from space settings, then go to Confluence admin settings -->backup-and-restore --> Backup site or Space --> Spaces --> Select the new space you have created and click Back up
  6. XML file will be generated and save it. 

In Target instance

  1. Go to Confluence admin settings --> Backup and Restore --> Restore.
  2. Upload the XML file if possible in UI or else upload the xml directly into the path shown in the screen. 
  3. Click Restore

More details about restore is in https://confluence.atlassian.com/conf91/restore-a-site-1442848837.html

 

Bhargavi Vasa
Contributor
January 27, 2025

Thanks for the information, we do have a limit upto 2000 to copy the pages . Any other way we can do that?

Rilwan Ahmed
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 27, 2025

Hi @Bhargavi Vasa ,

You need to copy pages phase by phase. 

i.e. 2000 page first, then remaining page. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events