I'm testing restoring nodeBB after a reboot on my server or a crash for example.
I set up redis with the default config:
-redis-server
I start nodeBB
-./nodebb start
This doesn't work, I have to run ./nodebb setup before ./nodebb start or the forum just show the top bar
After a setup, I can start the forums fine but it is a fresh new forums, seems like it did not load dump.rdb from redis. I lost all my categories and settings in nodeBB. Where is the category and settings saved on nodeBB? does running a "setup" overwrite them?
I would really like to be able to save Redis database and be able to restore it before thinking of going in production with nodeBB.
Is there a guide available because I followed the "update" procedure but seems like I'm missing something
http://forum.maximumtrainer.com:4567/
Edit:
Seems to have found the correct procedure, problem was I started Redis-server in a different location so the dump.rdb was not in /var/lib/redis like it should have been
Save
1- Save redis-server latest db
redis-cli save
2- shutdown nodeBB and redis-server
./nodebb stop
redis-cli shutdown
3- backup the corresponding dump.rdb file (location will be where you started redis-server)
Restore
1- Delete old dump.rdb if present
2- upload good dump.rdb
3- start redis-server at the location where dump.rdb is
cd [location_of_dump.rdb]
redis-server
4- start nodebb
./nodebb start