HTML5 Powered

Drupal 7

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

$ ruby -rubygems -e 'require "bunto-import";
    BuntoImport::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 "bunto-import";
    BuntoImport::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.