Drupal 6

Additional Dependencies

This importer requires the following additional libraries.

You may install the needed gems individually by running gem install GEM_NAME or install all of them with a single invocation:gem install mysql2 pg safe_yaml sequel

To import your posts from a Drupal 6 installation, run:

$ ruby -r rubygems -e 'require "jekyll-import";
    JekyllImport::Importers::Drupal6.run({
      "dbname"   => "name",
      "user"     => "myuser",
      "password" => "mypassword",
      "host"     => "myhost",
      "prefix"   => "mytableprefix",
      "types"    => ["blog", "story", "article"]
    })'

The only required fields are dbname and user. password defaults to "", host defaults to "localhost", and prefix defaults to "".

By default, this will pull in nodes of type blog, story, and article. To specify custom types, you can use the types option when you run the importer:

$ ruby -r rubygems -e 'require "jekyll-import";
    JekyllImport::Importers::Drupal6.run({
      "dbname"   => "name",
      "user"     => "myuser",
      "password" => "mypassword",
      "host"     => "myhost",
      "prefix"   => "mytableprefix",
      "types"    => ["blog", "post"]
    })'

That will import nodes of type blog and post only.