How to Take a Backup?
-
@srinik read the docs https://docs.nodebb.org/en/latest/upgrading/index.html#back-up-your-data
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):
https://sheharyar.me/blog/regular-mongo-backups-using-cron/ -
here's the basic gist of my script for anyone thats curious
https://gist.github.com/phit/510563e18963a7ef5113b6c861953dd1
Copyright © 2024 NodeBB | Contributors