https://github.com/bigelio/db-backup
Mongodb backup script with nodejs.
https://github.com/bigelio/db-backup
backup database database-backup mongo mongodb mongodump script
Last synced: 3 months ago
JSON representation
Mongodb backup script with nodejs.
- Host: GitHub
- URL: https://github.com/bigelio/db-backup
- Owner: bigelio
- Created: 2023-01-08T12:14:25.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-08T15:52:25.000Z (over 2 years ago)
- Last Synced: 2025-01-11T20:13:51.843Z (5 months ago)
- Topics: backup, database, database-backup, mongo, mongodb, mongodump, script
- Language: JavaScript
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# db-backup
Mongodb backup script with nodejs.
This is a cron job script to backup mongodb database every mid-night.
## prerequisites
- 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).## Environments
After creating .env file with this command
```
cp .example.env .env
```Add missing values to the variables.
## Scripts
```
node index.js
```