Skip to content

Instantly share code, notes, and snippets.

View rore's full-sized avatar

Rotem Hermon rore

View GitHub Profile
@rore
rore / backup.py
Created March 8, 2012 19:18 — forked from samuel/backup.py
A script to automate freezing XFS and locking MongoDB and snapshotting EBS volumes
#!/usr/bin/env python
from __future__ import with_statement
import contextlib
import logging
import os
import sys
import urllib2
from boto.ec2.connection import EC2Connection