Generate the XML backup and create a test instance
- On the production server, login as an administrator.
- Go to Space -> Space Tools -> Content Tools -> Export -> XML -> Next -> Full Export -> Export Space and export the target space as
XMLincluding attachments.
Extract the export backup file
- Open the space backup file with a zip file editor and find the file
entities.xml. - Edit
entities.xmlin a text editor. - Do a 'Search & Replace' with the old space name and replace with
New Space Name.
Example:<property name="destinationSpaceKey"><![CDATA[DDT]]></property>
<property name="lowerDestinationSpaceKey"><![CDATA[ddt]]></property>
Note: Repalce with upper and lower case in entities.xml file using sed commend "sed 's/old/new/g' entities.xml"
Edit the exportDescriptor.properties file
- Also edit the
exportDescriptor.propertiesfile in a text editor - Change the spaceKey value in the
exportDescriptor.propertiesfile to the new spaceKey.
Compress the attachments,entities.xml and exportDescriptor.properties with .xml.zip format.
zip -r Confluence-space-export-095347-136.xml.zip attachments entities.xml exportDescriptor.properties
Note :
To transfer zip file to test instance under "/hboprod/itdept/hbowiki/data/restore" directory.Restore to test instance for verification- Loginto the test instance as a Confluence administrator.
- Go to ->General Configuration -> Backup & Restore. Under 'Upload a zipped backup to Confluence', browse to select the modified space backup. Check the 'Build index' option and select 'Upload & Restore'.
If everything working as expected then restore to productionRestore On Production
- Backup your production instance now.
- Loginto the production instance as a Confluence administrator.
- Go to ->General Configuration -> Backup & Restore.
When you access a Space, the sidebar is blank and Space Tools is missing - (Do this in non PROD and then export the space from non-prod and import to prod)Resolution
- Verify if there is a Duplicate Entry in "AO_187CCC_SIDEBAR_LINK"
select * from "AO_187CCC_SIDEBAR_LINK" where "CATEGORY" = 'ADVANCED' AND "SPACE_KEY"='{SPACEKEY}';select * from "AO_187CCC_SIDEBAR_LINK" where "CATEGORY" = 'MAIN' AND "SPACE_KEY"='{SPACEKEY}'; - Change the SPACE_KEY from the old to new key. Commit. Restart confluence to reflect the change.


No comments:
Post a Comment