mongermongodump to S3 | |
Download |
monger Ranking & Summary
Advertisement
- License:
- MIT/X Consortium Lic...
- Price:
- FREE
- Publisher Name:
- Matt Ball
- Publisher web site:
- https://github.com/aquaya/
monger Tags
monger Description
monger is a Python module that runs mongodump and sends the tarball to S3.1. run mongodump2. tar the result3. send to S3This is meant to be used with cron. You probably want some combination of hourly/daily/ backups. Your crontab might look like0 1 * * * /path/to/mongo_backup.py --config /path/to/config.py --bucket pipeline-hourly0 0 1 * * /path/to/mongo_backup.py --config /path/to/config.py --bucket ivrhub-dailyThis system will currently not purge any backups.configurationSee the example config file - make a copy with real values somewhere safe. You'll need AWS credentials for accessing S3.requirementsUse virtualenv and pip: virtualenv /path/to/venv /path/to/venv/bin/activate(venv)$ pip install -r requirements.txttestingThe Monger class is tested using nose:(venv)$ cd monger(venv)$ nosetestsChange into the package dir to make sure the fixtures are picked up..scriptSee backup.py for a script that interfaces with the Monger package.restorationAll manual for now:1. pull down the relevant backup from S32. un-tar it3. run mongorestoreProduct's homepage
monger Related Software