Question
Does anyone have suggestions for how I might ease the pain of migrating my current wiki from
UseModWiki to TWiki?
UseMod stores pages in *.db files.
- TWiki version: Latest (as of 01 Feb 2001)
- Web server: Apache
- Server OS: Linux
--
RichHolladay - 01 Feb 2001
Here's an answer, one year later! Thanks to
LesOrchard
--
RichHolladay - 08 Feb 2002
Not Really an Answer
As I see that this topic has been open forever....
The best suggestion I have, given that I have never used UseMod, is:
Write a little (yes, little, I'm not being sarcastic here) Perl script to do the work, I assume that the way the data is stored is: topic name is the key to the topic, the topic itself is the content of the hash.
So, under these assumptions, what the script should do is:
- open the database file
- retrieve all the keys (ie. topics)
- create a file for the topic
- save the content in the file, and close it
- optionally do a ci (rcs check in) on the topic, with the desired user.
As a further pointer, your script should probably look sorta like this:
use DB_File;
tie %THEDBFILE , 'DB_File' , 'your_db_file_name' , O_RD , 0666 || die ("can't open file");
foreach $file (keys(%THEDBFILE)) {
create_the_file_here;
save_to_the_file_this $THEDBFILE{$file);
close_the_file_here;
}
Hope this helps (and if it does, could you attach it here for averyone else to use??).
--
EdgarBrown - 11 Apr 2001
Check out the
Plugins.DolphinToTWikiAddOn, you might find it useful to use it as a base for your converter code. DolphinWiki is file based, so you need to replace the file read part with a DB access (use DB_File or DBI)
--
PeterThoeny - 11 May 2001