Xar is a set of wiki pages that is stored in the database.
When you restore your old backup - you automatically end-up with previous version of xar.
So you DO need to import the new xar file, but as Jerem validly pointed (!) see that you
don't override your custom settings (simply do not import those pages OR try to
re-apply the changes on new pages).
> For import, you should be careful not to import
the standard pages you would have customized, or if you import them you will have to
customize them again.
Well maybe not exactly the case here since page customization
has been done. But for cases where simple settings tuning has been applied there is one
flaw in upgrade process that drives me crazy.
If I choose not to import some pages (those I have custom settings in) that were improved
in newer release - I may not get all the benefits of new release, or even worse - I may
have half-working system in case other pages that I did reimport from new release rely on
the NEW behavior of not-upgraded page.
This is complex problem, it's not just enough to separate the settings values from
presentation to freely upload full new XAR because settings keys also change once in a
while.
It might require identifying which pages were custom modified and provide means of merging
those with new ones.
-----Original Message-----
From: users-bounces(a)xwiki.org [mailto:users-bounces@xwiki.org] On Behalf Of jerem
Sent: Friday, January 13, 2012 09:39 AM
To: users(a)xwiki.org
Subject: Re: [xwiki-users] Which is the best strategy when migrating from one wiki version
to another wiki version?
Approach 2 is good, when the 3.3 webapp will start, if database schema was changed it
should be updated automatically - you just have to take care of setting correctly the
properties for this (see here :
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HUpgrading…)
What is left is to report also any modification you would have done the the properties
(xwiki.cfg, hibernate hbm, ...), and to reimport the standard 3.3 xar. For import, you
should be careful not to import the standard pages you would have customized, or if you
import them you will have to customize them again.
Another approach would be to migrate your existing instance of 3.2 to 3.3, and just
perform a database backup previously, but of course it means possible interruption of
service.
--
View this message in context:
http://xwiki.475771.n2.nabble.com/Which-is-the-best-strategy-when-migrating…
Sent from the XWiki- Users mailing list archive at
Nabble.com.
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users