Best to follow guides from MongodbCopy all the files in the webroot Use mongodump to backup your DB: https://docs.mongodb.com/manual/reference/program/mongodump/
Almost all data is saved in the DB except uploaded files 🙂
Do we have an inbuilt feature in NodeBB to take an automatic backup of the forum?
If no, then how one should take a backup?
Are there any plugins for it ...like wordpress plugins?
Please let me know.
Thanks in advance.
NodeBB itself cannot make an automatic backup.
@srinik: you can write bash or python script (whichever you prefer) which stops mongodb service, runs mongodump and starts mongodb again. You should make a cron job which runs your script once per week (example).
Look at the following code (bash):
here's the basic gist of my script for anyone thats curious