Skip to content

Instantly share code, notes, and snippets.

View jambaceesay's full-sized avatar

Jamba Ceesay jambaceesay

View GitHub Profile
@jambaceesay
jambaceesay / mongobackup.py
Created January 13, 2022 04:11 — forked from jasonwyatt/mongobackup.py
Python script to back up MongoDB databases given a MongoDB URL and output directory path. If no Mongo URL is given, it will default to checking for a MONGOLAB_URI config variable with `heroku config`.
#!/usr/bin/env python
import os
import argparse
import logging
import datetime
import urlparse
import subprocess
logging.basicConfig(level=logging.INFO)