Mongodb backup script with nodejs.
This is a cron job script to backup mongodb database every mid-night.
- nodejs/npm
- Mongo up and listening to port 27017 which is default port (for other port add new variable in .env file with name MONGO_PORT).
After creating .env file with this command
cp .example.env .env
Add missing values to the variables.
node index.js