[Moin-user] migrate command - 1.6.2 to 1.6.3

Thomas Waldmann tw-public at gmx.de
Mon Apr 28 10:44:04 EDT 2008


> I assumed that if the migration was successful, data would be moved or copy
> from the old data path:
> 
> 	/path/to/var/moin-1.6.2/data
> 
> to the new data path:
> 
> 	/path/to/var/moin-1.6.3/data

moin does NOT magically analyse the upperlevel directory names.

> But that doesn't happen, so I assumed the migration failed.  From your reply, I
> guess the migration is done in-place.  Is that correct?

Easy migration steps are done in-place.

If a complex migration step is done, we usually do something like this:
mv data data.pre-XXX
mkdir data
# and then convert old stuff from data.pre-XXX to data

> I also don't
> understand where the script would get the idea that the data is already at
> level 1060300,

Likely because you did not invoke it correctly and it maybe did not read
the right config, but the builtin one (and then found the builtin data
directory which is at the right level).

> when the meta file in the old data directory says 1060100.  I
> guess at this point I could just copy the data files into the new data
> directory, but I'd like to understand how this works for future reference.

You just have to call moin migration data correctly (and make sure
access rights are so that it can read/write). --config-dir and
--wiki-url are essential for finding the right configuration.

> It's also a little mystifying to me that although only one of the --wiki-url
> values I tried was possibly correct, I got the same "result" with all of
> them:  "migration is complete"

I guess your --config-dir was wrong. If you call it from the moin
directory, it maybe just has found its internal wikiconfig.py.

And as a wikiconfig (opposed to a farmconfig) is just for a single wiki,
it does not care for the url, but just matches any URL using the regex
".*".

If you look at our farmconfig samples, you see that the "wikis" entry
assigns URLs matching some specific regex to some specific config name
(and this happens the same way no matter you use some browser or the
moin script command with --wiki-url).






More information about the Moin-user mailing list