Drupal 7

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

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

That will import nodes of type blog and post only.

The default Drupal 7 expects database to be MySQL. If you want to import posts from Drupal 7 installation with PostgreSQL define "engine" as "postgresql":

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