Skip to content

Instantly share code, notes, and snippets.

@davehughes
davehughes / rc300_backup.py
Created October 25, 2015 21:04 — forked from anonymous/rc300_backup.py
Basic script to upload a backup from the Boss RC-300 loop station to S3.
import datetime
import os
import StringIO
import tarfile
import boto
MOUNT_LOCATION = '/Volumes/BOSS_RC-300'
UPLOAD_REGION = '<your-region-here>'
# post_commit and post_rollback transaction signals for Django with monkey patching
# Author Grégoire Cachet <gregoire.cachet@gmail.com>
# http://gist.github.com/247844
#
# Usage:
# You have to make sure to load this before you use signals.
# For example, create utils/__init__.py and then utils/transaction.py contening
# this gist in you project. Then add "import utils.transaction" in your project
# __init__.py file
#