Skip to content

GeekLog 1.x to Drupal 6.x migration script

thelusiv edited this page Dec 3, 2010 · 1 revision

About

There is some Drupal documentation on migrating from GeekLog but it falls short of my personal expectations. So I started writing my own migration script to take care of some old Geeklog sites I needed moved to Drupal. It's written in Python, but someone could probably easily port it to PHP with support from Drupal core functions. It imports:

  • users (from a list)
  • story topics
  • stories
  • story comments
  • static pages

Unlike the method described in the Drupal docs, it preserves the authors of stories and comments, instead of assigning all the stories to admin or someone else.

To Do

The script still lacks support for:

  • links
  • gallery
  • comment threading
  • some other things...

Other things that would be nice:

  • support for importing all users
  • more comments/documentation

Geeklog plugins

There are probably a lot of plugins that could be migrated but that is probably outside the scope of this script, and might as well be separate.

Running

  1. Edit the file to point to your databases, and edit lines 51 and 56 - you must put user IDs in gl_uids_to_convert
  2. python geeklog2drupal.py