Hi Francisco!

Hernández Cuchí wrote:
> Hi, 
>
> That is not really what I want. My problem is that I have an xwiki 1.7.14 and 
> I wanto to move to a 2.0milestone 2 in another machine. I get a lot of 
> corrupted xar files (cannot open them with 7zip) because of java memory heap 
> exception (even if they are spaces of only one page!). So I need a different 
> way of exporting the data, because if I have 40 spaces, 10 xar files are 
> corrupted. Even, I wrote my own snippet to get the spaces exported 
> selectively, but still getting corrupted xar files. So, ¿is it posible to 
> backup the database and import it in the new installation?
>   
Hopefully I will face a similar workflow in the following weeks, so let 
see if I am able to help here :-)

As far as I understand, you have to XWiki installations. Each of them on 
a different box. What you are looking for is to move the whole 1.7.14 
database to a brand new 2.0m2 in a different box.

If this is what you want and although this not solve the doubts about 
why do exports get corrupted, you can export the whole XWiki database 
schema, reimport it in the new database installation (if there is one in 
the same box where you have installed the new XWiki instance) and 
provided you have correctly configured username and password in 
hibernate.cfg.xml file it must work.

The first time the new XWiki instances starts, the required database 
schema updated will be performed by the system. I've done that severel 
times in the past without any problem working with MySQL databases. 
There have been issues related with schema updates in early releases, 
but I've not read anything about them lately. In fact, it is a similar 
process to install a new XWiki from the scratch but dealing with an 
existing database. If XWiki finds a database, it will use it instead of 
creating a new one.

Of course modifications done to Velocity templates, skins,... not stored 
in the database must be done separately. Also, as with a regular update, 
you must be extremely cautious when importing the new default xar file 
for the new release.

HTH,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to