Tags:
create new tag
, view all tags
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:

  1. open the database file
  2. retrieve all the keys (ie. topics)
  3. create a file for the topic
  4. save the content in the file, and close it
  5. 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

Topic revision: r6 - 2004-12-12 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.