[Moin-user] Question about upgrading

Raul Cuza rcuza at unis.org
Thu Jun 23 14:09:43 EDT 2011

Hola Chris,

If you use `touch filename` instead of `vi filename` do you get the same results? You can use `stat filename` to see what changes before and after using the vi. I suspect `touch` will make the same change.

You can easily touch all 600 files with one command: `find /path/to/moin/site/data/pages -type f -regex '.*/revisions/.* -exec touch {} \;` You can replace "-exec touch {} \;" with "-ls" to get a list of all the files that will be affected by the execution of the `touch` command. I do NOT know what touching all these files will do to moin; can someone more familiar with how moin works comment on that?

If you JUST want to touch the file listed as current, then the following command will just touch that file:

	for i in `ls /path/to/moin/site/data/pages`; do ls -l $i/revisions/`cat $i/current`; done

But you will get errors for any files that don't have a revisions or current dir/file. A more complicated shell script could avoid the errors.

You may already know about the touch command and automating it using find and for, so please chalk it up to eagerness to be helpful. I am curious if using touch does the same thing as your vi-save-quit steps, so please share the results of that test.


> -----Original Message-----
> From: Chris Freemesser [mailto:chris at cvs.rochester.edu]
> Sent: Thursday, June 23, 2011 11:08 AM
> To: moin-user at lists.sourceforge.net
> Subject: [Moin-user] Question about upgrading
> Hi all.
> I'm in the process of replacing our old wiki server (a Mac running the
> MoinMoin 1.5.3-based MoinX wiki software) with a new Mac OSX 10.6
> machine running a "normal" version of MoinMoin 1.9.3 + Apache.
> I have the new installation running, and ran the page files from the old server
> through the necessary conversion scripts (mig10 and 152_to_1050300).  I
> then invoked the moin "migration data" command specified for post 1.5.3
> new style migrations.  The scripts seemed to work fine, but I'm not 100% sure
> that the "migration data" command ran correctly.
> I find that if I try to view a page on the new server, the web browser displays
> an unhandled exception error.  If I then go into the "revisions" directory for
> that page, load the last revision into vi and immediately resave it (making no
> changes to the file), I can now view the page *and* view all previous
> revisions.  The file permissions don't seem to change after using vi, so I'm at a
> loss as to why this works.  The one thing I do notice is that when I load the file
> into vi, the line at the bottom of the window shows the filename as well as
> '[dos]'.
> With about 600 pages on our wiki server, the prospect of editing these
> revisions by hand is not particularly appealing. :)  Does anybody either know
> why this is happening and how to fix it, or conversely, know a way to
> automate this "editing" process?
> Thanks much,
> Chris
> _____________________________________________
> Chris Freemesser, University of Rochester Department of Brain & Cognitive
> Sciences / Center for Visual Science Meliora Hall, Room 244
> E-Mail: chris at cvs.rochester.edu
> Phone:  (585)275-0786
> _____________________________________________
> ------------------------------------------------------------------------------
> Simplify data backup and recovery for your virtual environment with
> vRanger.
> Installation's a snap, and flexible recovery options mean your data is safe,
> secure and there when you need it. Data protection magic?
> Nope - It's vRanger. Get your free trial download today.
> http://p.sf.net/sfu/quest-sfdev2dev
> _______________________________________________
> Moin-user mailing list
> Moin-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/moin-user

More information about the Moin-user mailing list