@baris it works ๐
thanks for quick reply ๐
Is it possible to make a back-up from NodeBB (0.9.2) and install a new fresh recent nodeBB. And recover the posts users and other data (except the pluggins)
Is this possible and how do I do that?
I use Redis as database, but I don't know how this works. So that's why I'm asking.
@MJ I've asked in other posts for some type of user/content export similar to wp that can then be imported into a fresh install but didn't get any response so I assume it doesn't exist. It would be nice to have. We will have to wait. Sadly it seems development has slow to a crawl while others are moving ahead.
Iยดm also very interested in this topic. Is there a general backup strategy? Right now my forum runs in a lxc container which Iยดm periodically backup with rsync
was looking for the same thing, and so far got this link. Its a way to backup/restore the entire database. So basically if you create a fresh nodebb install, with the same db name and same db user/password, it should work. Havent tried it yet though.
@connectkushal thank you. Iยดll have a look at that. Would be nice to have some export/import function inside the admin dashboard though
@mechanix true ! this should be put up as a feature request.
As long as you migrate the .rdb database (download, then upload to new instance) and carry over your existing redis.conf you can migrate without issue.
When you change nodebb versions you will need to do ./nodebb upgrade
to update the database schema, I would do that first before backing it up and moving it to a clean install. afaik the database is located at /var/redis/6379/dump.rdb
by default.
@yariplus and for mongodb users ?
@connectkushal ehh, /data/db/
is the default, but it can vary by distro, check your mongodb.conf, src
@yariplus moving to clean install and copying config.json and starting the instance gives "Error:Cannot find module mongodb" error. Please help me find what to do in this case.
@manan said in Make back-up > New fresh install > recover posts, users and data:
Error:Cannot find module mongodb
It would appear that the mongodb package is not installed. Running npm install
again might fix it.
@yariplus Ah...I was doing it on version 0.9.4 which did not have mongodb dependency listed in package.json. Had to install manually. Thanks.