Creating a Wiki Snapshot

Hi folks,

I have setup our team wiki using XWiki 9.1.2 on top of Mysql & Tomcat. Everything is confiigured and works as required.

I would now like to create a 1:1 copy of that wiki which should run in the same web container, just with a different name and URL. I’d like to use this snpashot for testing admin stuff, new extensions a.s.o. without affecting the current wiki.

What I’ve done was

  1. created a new mysql database NEWWIKI and filled it with the content of the current one
  2. copied the tomcat/webapps folder of the current wiki to a temp location
  3. in that temp copy, modified the hibernate configuration to point to the NEWWIKI database
  4. followed http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HRunningmultipleinstancesofXWikiinthesamecontainer to ensure that a unique name is used
  5. packed the temp folder to a NEWWIKI.war file and deployed it to tomcat as /NEWWIKI

On first access to /NEWWIKI, the repair wizard is run and after that, NEWWIKI is accessible.

However it seems, that both the current wiki and the NEWWIKI are sharing resources. In fact it seems as if both access paths, e.g. localhost:8080/teamwiki and localhost:8080/NEWIKI are pointing to the same instance.

Any idea what goes wrong? Or maybe a different way to create a snapshot for testing purpose?

Thanks
Rolf

You probably forgot to the set the permanent directory (and thus it points to some temporary dir, check the xwiki startup logs) and you probably didn’t copy it.

To know what to copy, read the Backup/Restore topic in the Admin Guide: http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Backup