Tags:
create new tag
view all tags

Question

How do I migrate the data off of a Zwiki server to a Twiki server?

  • TWiki version:
  • Web server:
  • Server OS: Solaris 2.7
  • Web browser: Netscape 4.7x
  • Client OS: Solaris 2.8

-- ChrisKacerguis - 09 Jul 2002

Answer

Not sure, but have a look at these pages for some ideas on migration from other Wikis to TWiki - if Zwiki uses the ZODB database to store its pages you would need to extract the raw pages into flat files first.

Searched: dolphin

Results from Support web retrieved at 10:13 (GMT)

Question Have installed Twiki, but have some problems migrating some content from the old MoinMoin wiki. The content is generated by programs which I would prefer...
Question Has anyone converted to Twiki from another wiki site? Such as PMWiki? What are the issues / steps involved Environment TWiki version: TWikiRelease02Sep...
Question I`m looking for a way to export a database file to separate TWiki topics. Here`s the background: Someone gave me a file listing approximately 300 group...
Question I have a lot of text files I want to upload into TWiki but NOT as attachments. I want to upload them into a Topic`s main content area. Is there a way to...
Question . I`d like to import pages created in http://wiki.cs.uiuc.edu/VisualWorks/WikiWorks into an existing TWiki. The problem is the formats are different. Is there...
Question How do I import Wiki data from Instiki (another wiki application)? Environment TWiki version: TWikiRelease02Sep2004 TWiki plugins: Default...
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....
Question How do I migrate the data off of a Zwiki server to a Twiki server? TWiki version: Web server: Server OS: Solaris 2.7 Web browser: Netscape...
Number of topics: 8

-- RichardDonkin - 09 Jul 2002

Check out Plugins.DolphinToTWikiAddOn in case you are a Perl programmer, you could it as a base for your converter. The tricky part is to first read a ZODB into a Perl variable or object. Check if you find anything in CPAN.

-- PeterThoeny - 23 Jul 2002

I've written a perl script that does the conversion. You first export the zwiki folder to XML (in the management interface) and the script converts the XML to twiki pages. E-mail if you are interested rscanon at hotmail dot com.

-- TWikiGuest - 23 Apr 2004

Dear guest, thanks for the offer. The community would appreciate if you could package this as an add-on and make it available in AddOnPackage, e.g. as an ZwikiToTWikiAddOn.

See also related GenericWikiToTWikiAddOn and KwikiToTWikiAddOn.

-- PeterThoeny - 24 Apr 2004

I've a method for migrating just the latest version of each page.

Inside the zwiki site, create a python script (using the management interface) like so:

items = context.objectValues(['ZWiki Page'])
for wikipage in items:
   print '-----------------------------------------------------------'
   print wikipage.Title()
   print '----'
   print wikipage.raw
return printed

Then run the script (by clicking "Test" in the management interface) and download the result to a file.

Then save the following python to a file in the same dir as the file you downloaded.

#!/usr/bin/python
import sys
import os
f = file(sys.argv[1])
data = f.read().strip()
stuff = data.split("-----------------------------------------------------------")
bits = []
for bit in stuff:
   bits.append(bit.split("\n----\n"))
try:
   os.mkdir('zwiki')
except:
   pass
for bit in bits:
   try:
      f1 = file(os.path.join('zwiki',bit[0].strip()),'wb')
   except:
      continue
   f1.write(bit[1].strip())
   f1.close()

Now run it: python zwiki-split.py download-file.txt

It will create a zwiki dir with a bunch of files which you can import to twiki. The import step and the inevitable cleanup of the resulting pages are manual at this stage.

-- PaulWise - 02 Feb 2005

Thanks Paul for sharing. I created ZwikiToTWikiAddOn with your info. If you have an improved version replace that topic.

-- PeterThoeny - 03 Feb 2005

Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r7 - 2005-02-03 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.