Has anyone hacked together an import script from Socialengine to Discourse? I’d hate to reinvent the wheel here.
It doesn’t look like it. Can you get a database dump from them? If so, you can use one of the existing importers as a model. (See discourse/script/import_scripts at main · discourse/discourse · GitHub)
Yea, I didnt find anything either. Should be easy enough to import users and forums. I think forums/topics/posts become categories and their posts, and the users should just come across. I pull nightly backups from my site. I can load it into pgadmin and export out a CSV of the tables.
Most importers pull from an sql database. Most use mysql, but there may be a couple that use postgres. You definitely want to avoid csv.
이 스레드를 다시 살려봅니다. 드디어 이 작업을 완료해서 SocialEngine 포럼을 Discourse로 가져오는 데 성공했네요.
상당한 해킹과 지저분한 코드가 필요했지만, 결국 성공했습니다. 약 4,800명의 사용자와 39만 건 내외의 게시물을 가져왔습니다. 원본 DB가 일정 시간 후에 타임아웃이 발생해서 게시물 가져오기는 분할로 진행했습니다. 가져오기 후 처리 작업이 꽤 있었지만, 전반적으로 회원분들은 만족해하는 것 같습니다.
코드를 조금 정리해서 "여기서 시작하면 됩니다. 하지만 거의 확실하게 바로 제대로 작동하지는 않습니다"라는 시작점으로 공유할지도 모르겠습니다.
예고한 대로 코드를 정리했습니다 (모든 FIXME, HACK 등의 태그와 pp 디버깅 출력을 제거하고), 간단한 README를 작성하여 Gitlab에 올렸습니다.
코드는 지저분하고 해킹성이 강하며 제 환경에서는 작동했습니다. 다른 사람에게는 작동할 것이라고 주장하지 않습니다. 미리 경고합니다.