Skip to content

Instantly share code, notes, and snippets.

View nickmerwin's full-sized avatar

Nick Merwin nickmerwin

View GitHub Profile
@nickmerwin
nickmerwin / backup.rake
Created October 8, 2009 20:38
Task to backup your heroku db to S3
# Heroku S3 Database backup task
# by Nick Merwin (Lemur Heavy Industries) 10.08.09
# * dumps db to yaml, gzip's and sends to S3
#
# Setup:
# 1) replace APP_NAME and BACKUP_BUCKET with your info
# 2) add config/s3.yml like so (same as Paperclip's):
# production:
# access_key_id: ...
# secret_access_key: ...