General Migration#

The providers at MigratorProvider can be used to migrate pages from one provider to another, as long as they can both co-exist in the wiki. When MigratorPageProvider is initialized, it copies pages from the old provider to the new and then acts like a proxy for the new provider. Only real drawback is that modification dates are lost.

Migrating from VersioningFileProvider to RCSFileProvider#

Moving from RCSFileProvider is a bit complicated, since it involves you checking out the pages manually and storing them in the OLD directory. Could someone perhaps contribute a short script for this?

BTW, if you can live without your previous version history, just delete the RCS-subdirectory in the JSPWiki page repository, and then change the page provider. All new versions will then go to the VersioningFileProvider directory.

Though in all honesty, I haven't tested it all under Windows. There should be nothing Linux-specific in it, though... :-)

You don't need the RCS checkin commands at all when you're using VersioningFileProvider. RCS is not used at all in that case.


I have attached a perl script I wrote that does just this. It also makes sure the permissions are sane, you may want to comment out those bits if you don't need that, or aren't running it as root. This is a quick & dirty script, for sure. Usage: rcs2vfp <pagestore directory> <user> <group>. The user and group should be that of your tomcat user. Use this script at your own risk, and back up your wiki first!

This script will iterate through all .txt files in the directory specified. It will then grab the author and revision info with the RCS rlog command, and populate the OLD directory accordingly. Let me know if you have any trouble with it.


One Problem I have noticed with the VersioningFileProvider (using JSPWiki v2.1.22-cvs) is that the "last changed date" displayed at the bottom of pages is never updated as it was using the RCSFileProvider. Could this be because I did not follow the recommended procedure for switching from RCSFileProvider to VersioningFileProvider?

I have in my archives somewhere an RCSFileProvider ready tarball of the initial set of Wiki pages (at least as of some version of JSPWiki from quite long ago). If anybody wants them, just drop me a line. I am happy to contribute them if anyone thinks they would be useful to help people get going quickly with the RCSFileProvider.


Add new attachment

Only authorized users are allowed to upload new attachments.

List of attachments

Kind Attachment Name Size Version Date Modified Author Change note
pl 3.6 kB 1 06-Sep-2007 00:36 Script to convert RCS to VersioningFileProvider
« This page (revision-5) was last changed on 06-Sep-2007 00:39 by