https://github.com/kevinnadar22/mongo-backup-tool
A simple web tool to backup and restore MongoDB databases.
https://github.com/kevinnadar22/mongo-backup-tool
backup-tool mongodb mongodb-atlas restore-database streamlit-webapp
Last synced: about 2 months ago
JSON representation
A simple web tool to backup and restore MongoDB databases.
- Host: GitHub
- URL: https://github.com/kevinnadar22/mongo-backup-tool
- Owner: kevinnadar22
- Created: 2025-01-22T15:49:34.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-20T16:10:31.000Z (over 1 year ago)
- Last Synced: 2025-09-02T11:48:35.216Z (10 months ago)
- Topics: backup-tool, mongodb, mongodb-atlas, restore-database, streamlit-webapp
- Language: Python
- Homepage:
- Size: 44.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# MongoDB Backup & Restore Tool 💾
A simple web tool to backup and restore MongoDB databases.
## Features
- 🔄 Backup specific or all databases
- 📦 Restore databases with ease
## Quick Start
### Manual Setup
1. Clone the repository:
```bash
git clone https://github.com/kevinnadar22/mongo-backup-tool.git
cd mongodb-backup-tool
```
2. Install requirements:
```bash
# Install MongoDB Tools
## Ubuntu/Debian
sudo apt-get install mongodb-database-tools
## macOS
brew install mongodb/brew/mongodb-database-tools
## Windows
# Download from https://www.mongodb.com/try/download/database-tools
# Install Python dependencies
pip install -r requirements.txt
```
3. Run the app:
```bash
streamlit run main.py
```
## Docker Deployment
1. Build the image:
```bash
docker build -t mongo-backup-tool .
```
2. Run container:
```bash
docker run -p 8501:8501 mongo-backup-tool
```
## Environment Variables
- `MAX_EXPORT_SIZE`: Maximum backup size in bytes (default: 512MB)
- `BACKUP_RETENTION_HOURS`: Hours to keep backups (default: 1)
## Author
- [Kevin Nadar](https://github.com/kevinnadar22)