[dokuwiki] Re: How to update to a latest doku wiki?

On Tuesday 19 May 2009 19:47:00 Daniel.Li wrote:
> On Tue, 2009-05-19 at 20:30 -0300, Felipe Uderman wrote:
> >         If I have installed an old version, how to keep the data and
> >         use a new
> >         version? I checked below page, but didn't find any valuable
> >         info.
> >
> >
> > Just copy the new version to you dokuwiki directory.
>
> As u know, we might have some useless files which should be dropped.

yes, unpacking on top of an existing install would not trim cruft

> Or configuration file might be overwritten.

if you configured your dokuwiki correctly, no relevant config file would be 
overwritten.  all changes should be made in foo.local.conf, not foo.conf.  
dokuwiki never packages .local.conf files, so they'd never get overwritten.

> That's what I concern, from user's view. As user will never know what
> has been exactly changed or how to avoid data loss. If it happens, what
> should I do.

pay someone to do it for you

> So I do recommend one button upgrade with status printed on web pages,
> and finally, it says "Done!"

problem with that is the webserver would need writable access to the entire 
dokuwiki install.  some people may not mind, but i certainly dont want apache 
having access to overwrite itself.

> Or git pull, something like that to keep up with latest version.

this is how i maintain the blackfin dokuwiki and it's trivial to do it 
yourself.  i dont keep entire change history (i.e. what you'd get from the 
darcs repo), just the releases.  as for how to sync those trees, that too is 
easy: rsync -av --delete --exclude=.git dokuwik-xx-xx-xx/ dokuwiki-git/
then just clone the dokuwiki-git dir into your web install.
-mike

Other related posts: