A mini Node.js + MongoDB project that automatically takes database backups every 5 minutes using GitHub Actions.
- Fork or clone this repo.
- Go to GitHub → Settings → Secrets → Actions → New repository secret
- Name:
MONGO_URI - Value: Your MongoDB Atlas connection string
- Name:
- Commit and push your code.
- Go to the Actions tab → Watch “MongoDB Auto Backup” workflow run every 5 minutes.
- After completion, check “Artifacts” section → download your latest backup ZIP.
To test locally:
npm install
echo "MONGO_URI=your_connection_string" > .env
npm start