Migrate a Ning forum to Discourse

Want to migrate from Ning to Discourse? Great! Let’s get started.

What data can be imported?

  • Users
  • Avatars
  • Directories/Categories
  • Topics & Posts
  • Images
  • Attachments

Prerequisites

  1. Set up Discourse development environment on macOS, Ubuntu or Debian or Windows.

  2. Clear existing data from your local Discourse instance:

    cd ~/discourse
    rake db:drop db:create db:migrate
    
  3. Open Ning import script in the editor of your choice.

  4. Replace JSON_FILES_DIR value with the location of your Ning export data.

  5. Add/Delete values in ATTACHMENT_PREFIXES depending on directories/categories you want to import.

Perform Import

  1. Depending on what directories/categories you want to import, add/delete import_{entity} method.

    For example, notice that the import_photos method will import all the photos present in /ning/export/location/photos directory by reading ning-photos-local.json file.

    Always use {xyz}-local.json files for importing data.

  2. Start import process:

    cd ~/discourse
    bundle exec ruby script/import_scripts/ning.rb
    
  3. Wait until the import is done. You can restart the process if it slows down to a crawl.

  4. Start your Discourse instance: bundle exec rails server

  5. Take backup of the data and upload it to on your production site by following this howto.


Congratulations! You have successfully migrated your site from Ning to Discourse! :tada:

Last edited by @JammyDodger 2024-05-27T14:56:51Z

Check documentPerform check on document:
10 лайков

This guide looks very useful for people who’ve used Vagrant to get Discourse running in their environment, however is there possibly a chance of getting a guide on how to use the Ning import script in the Docker environment? If I follow this guide I get errors like “Could not locate Gemfile or ./bundle directory” and rake also doesn’t seem to be installed.

Will the ning.rb script even work in the Docker Discourse setup?

Привет @techAPJ, я отвечаю на очень старый пост. Вы всё ещё в сети?

Я планирую перенести наш контент с Ning на Discourse. Мы используем тарифный план Discourse Hosted. Возможно ли всё ещё выполнить этот перенос, или нам нужно размещать Discourse независимо?

Я не разработчик и планирую нанять кого-то для выполнения этого переноса. Есть ли рекомендации по ресурсам, которые могли бы помочь? Спасибо!

Привет, Эрик,

Конечно, это возможно.

Я вижу, что вы только что написали нашей команде по вопросам миграции. Кто-то из нашей команды по работе с сообществом ответит вам там в ближайшее время. :slight_smile:

3 лайка

Я бы тоже хотел поговорить с командой по миграции…