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개의 좋아요

마이그레이션 팀과도 이야기하고 싶네요…