On 12/01/12 17:55, mohit gupta wrote:
As of know my xwiki version is 3.2. Now we are planning to move on 3.3. Now
as admin user we have done lot of customization regarding
user,group,space creation and their right management. We have created some
content and attachment also under some user created spaces and pages.
Though everything is part of  xwiki databse as i have not explicity  done
any settinsg to save any stuff on disk
Now when i am migrating to 3.3 i am doing fresh installation. Till here
fine. Now i want to migrate all 3.2 xwiki data  to 3.3 xwiki.
As per admin guide there seems two be two approaches :-

*Approach1:-*Export 3.2 xwiki data to xar file and then import it in 3.3
xwiki. *But it did not work for me*, as after migration i do not see some
stuff like
main space web homepage same as it used to be in 3.2 xwiki.


*Approach2:-* Take back up of complete 3.2 xwiki database . Now for 3.3
xwiki just make empty 3.3 schema and restore it to 3.2 xwiki data dump.
*It worked for me.* Every thing is same in 3.3 which was there in 3.2(that
is what i wanted) Now my question is it the right approach? Do i have to
take some precaution or need to be careful while doing this approach? *One
last question on this say there are some database configuration changes in
3.3 like deletion/addition of some table, or deltion/addition of some
column etc , in that case What  will be consequences of this approach?*
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Hi,


although as you have described there are a few ways to deal with upgrade/migration but I think the best and easiest is to:

1. Backup database
2. Backup xwiki folder from Java container

then store somewhere safe so if something blows up at least there is a working instance to turn back to.


I've just been through a migration and the way I did it was to use the old DB.

(after backup of webapps/xwiki folder, remove it)

Put the **new** Xwiki.war into the webapps/ directory of your Java container.

Start the service (Glassfish, Tomcat et el....)

Copy across any specific customization from the old backup: ie. hibernate.cfg.xml, xwiki.cfg, skins


Logon to wiki URL as Admin


Import the xwiki.x.y.xar file where the x.y should match the version of the .war

Deselect anything customized!


Main.WebHome
Xwiki.Admin
Xwiki.DefaultSkin
Xwiki.XwikiPreferences
Xwiki.WebPreferences
Xwiki.XwikiAdminGroup
Xwiki.XwikiAllGroup


the above selections worked for me fine :-)


Then refresh, pray and hope that everything is in order still and it should be ok.


I did run into some as of yet 'unsolved' problems (nothing major to do with content or customizations) but I'm hoping that upgrading to 3.3 will solve those too.



Regards,


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

Reply via email to