
- #Confluence copy space to another space zip file#
- #Confluence copy space to another space full#
- #Confluence copy space to another space verification#
Once the restore process has been completed, access the new space and test that you can access pages, embedded links, and attachments. Check the 'Build index' option and select 'Upload & Restore'. Under 'Upload a zipped backup to Confluence', browse to select the modified space backup. Go to > General Configuration > Backup & Restore. Login to your test instance as a Confluence administrator. #Confluence copy space to another space verification#
Stage 4: Restore to a lower (Test/Dev/Staging) environment for verification Change the spaceKey value in the exportDescriptor.properties file to the new spaceKey.Also, edit the exportDescriptor.properties file in a text editor.Stage 3: Edit the exportDescriptor.properties file Overwrite the original entities.xml in the space back up with the modified version.Swap out Old Space Name and New Space Name for the actual names.
#Confluence copy space to another space zip file#
Open the space backup file with a zip file editor and find the file entities.xml.ĭo a 'Search & Replace' on the old space name as shown below. Rename-Item -Path $fileOut -NewName "entities.xml" Rename-Item -Path $fileIn -NewName "entities_old.xml" Replace("ri:space-key=$oldKeyU", " ri:space-key=$newKeyU"). Replace("spaceKey=$oldKeyL", "spaceKey=$newKeyL"). Replace("spaceKey=$oldKeyU", "spaceKey=$newKeyU"). $fileOut = Join-Path $exportFolder "entities2.xml" $fileIn = Join-Path $exportFolder "entities.xml" Oldkey_lowercase=$(echo "$ entities.xml exportDescriptor.properties # the lower case variables will be defined here based on the above, and you do not need to change them # the variables defined above will be used below Stage 2: Edit the entities.xml file (via Bash & PowerShell scripts OR manually) Scripts #Confluence copy space to another space full#
Go to Space > Space Tools > Content Tools > Export > XML > Next > Full Export > Export Space and export the target space as XMLincluding attachments.
On the test server, log in as an administrator. (For instructions, see Restoring a Test Instance from Production.) 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. Clone your production Confluence instance to a test server on another computer now. If we have one of the invalid characters in the space key, the re-import will fail with a stack trace. Space keys may only consist of ASCII letters or numbers (A-Z, a-z, 0-9) and no empty spaces, sp ecial characters or underscore are allowed in the key. Select a new, unique space key and name for the second space. Stage 1: Generate the XML backup and create a test instance Atlassian Confluence Cloud does not support a full site import. If you're changing the space key in order to import it into your Atlassian Confluence Cloud site, make sure you'll do it on a space-by-space basis. Move any other pages that should not be a child of the homepage (such as an included library) back to the root of the space. Go to Space Tools > Overview and set your copied homepage as the space homepage. Go to Space tools > Reorder pages, and move your copied pages to the root of the space, so they are not a child of the homepage.
In the new space, your copied pages will be a child of the new space’s existing homepage. Go back to the source space, and move any pages you temporarily moved, back to the root of the space.Pages are copied in batches, so don’t worry if they’re not all there immediately. This might take a little while, depending on how big your space is. Make sure all checkboxes are selected so that labels, attachments, and restrictions are all preserved.
Specify your new space as the destination. If you have no pages at the root, you can skip this step. This is to ensure the connection between pages in links and macros are preserved when copying. In your source space, go to Space Tools > Reorder pages, and temporarily move any pages that exist at the root of the space to be a child of the homepage. To copy a space using copy page hierarchy:Ĭreate a new space and set any permissions, look and feel, and other customizations. The following instructions are for Confluence Server or Data Center, but you can follow a similar process in Cloud. This can be useful if you need to copy the contents of an entire space. The ability to copy a page and all its child pages was introduced in Confluence 6.0. Solution 2 - Use the copy page hierarchy feature Available for CLOUD SERVER DATA CENTER Tags 5 6 6.3 6.4 7 7.Note that the Atlassian Labs Copy Space for Confluence app is not compatible with Confluence Server and Data Center 7.0 or later.