Skip to content

Instantly share code, notes, and snippets.

View hkarthik's full-sized avatar

Karthik Hariharan hkarthik

  • Goodwater Capital
  • San Francisco, CA
  • X @hkarthik
View GitHub Profile
@hkarthik
hkarthik / fetch_pgbackups.rb
Created May 11, 2011 04:00 — forked from jwood/fetch_pgbackups.rb
Create a pgbackup on Heroku for a given project, and then download it for local storage
#!/usr/bin/ruby
#
# This script assumes that you have either 0 or 1 pgbackups stored
# on Heroku, and that you already have the heroku gem installed
# and configured on your system.
#
PROJECT_DIRECTORY = "/home/jwood/dev/myproj"
BACKUP_FILE = "/home/jwood/backup/myproj.dump"
wget ftp://ftp.ruby-lang.org//pub/ruby/1.9/ruby-1.9.2-p180.tar.gz
tar xzf ruby-1.9.2-p180.tar.gz
cd ruby-1.9.2-p180
./configure
make
make install
make install-doc
gem update --system