Due to problems with our existing nodebb server, where we twice failed to do an in-place upgrade - I would like to check if migrating an older environment to a complete fresh installation is feasible? Database is mongodb 7. The plan would be to backup data from nodebb 3.2.3 and import that to the 4.6.1 instance. Is this feasible at all? Has someone else done something similar? Thanks, Stefan

  • <baris>@community.nodebb.org
    link
    fedilink
    arrow-up
    2
    ·
    2 months ago

    Yes it is possible, once you restore the database and point the 4.6.1 instance to it, run ./nodebb upgrade it will run the migration scripts required to update the database to 4.6.1

  • JonathanRDD@community.nodebb.org
    link
    fedilink
    arrow-up
    1
    ·
    1 month ago

    big_steve Yes, it’s doable. You can load the 3.2.3 dump into a clean 4.6.1 install and let NodeBB handle the schema changes on startup. It will detect the older database and migrate everything automatically. Many people have moved from 3.x to 4.x using this approach, so as long as the backup is good and MongoDB 7 is configured correctly, it works fine.