@rod Thanks, it makes sense. I didn't backup ./nodebb_module dir.
So ./nodebb_module and ./uploads dirs are basically needed right? Is there any other dir is needed also?
Backup
-
Hi, can someone give me a tutorial for backup my NodeBB forum and the detabase (MongoDB) I use apache2 Ubuntu
-
-
@pichalite Only for database ?
-
And the uploads folder. The only place NodeBB stores data is in the database and in the uploads folder.
-
@yariplus Need details, I'm is new on NodeBB
-
I posted a nice script that does daily, weekly, monthly backups of the mongodb. I'll try and find it.
You could probably add a command to backup your uploads folder too.
-
Here is a Chinese vesion of how to backup MongoDB database data:
-
Best to follow guides from Mongodb
- Copy 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