Skip to content

Instantly share code, notes, and snippets.

View stellasoe's full-sized avatar

stella soe stellasoe

View GitHub Profile
@stellasoe
stellasoe / Rakefile.rb
Created September 24, 2018 10:22 — forked from Epictetus/Rakefile.rb
How to do automatic backup with Heroku PGBackups and Heroku Cron. http://carlhoerberg.com/automatic-backup-of-heroku-database-to-s3
require 'aws/s3'
require 'heroku'
require 'heroku/command'
require 'heroku/command/auth'
require 'heroku/command/pgbackups'
task :cron do
class Heroku::Auth
def self.client
Heroku::Client.new ENV['heroku_login'], ENV['heroku_passwd']