Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pat/lu-tze
Automated Backup Helper for Heroku
https://github.com/pat/lu-tze
Last synced: 28 days ago
JSON representation
Automated Backup Helper for Heroku
- Host: GitHub
- URL: https://github.com/pat/lu-tze
- Owner: pat
- License: mit
- Created: 2010-07-20T05:53:36.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2010-11-21T05:06:28.000Z (almost 14 years ago)
- Last Synced: 2023-04-09T05:11:52.940Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 93.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.textile
Awesome Lists containing this project
README
h1. Lu Tze
We all know backups are important. However, they're often annoying. So, Lu Tze is a service for automating database backups. It sends an SQL dump of your database off to a remote backup service (Historian). It's been built to work just on Heroku (so PostgreSQL only), although there's potential for it to expand later down the track.
At this point, I've not open-sourced Historian, so while you can look at this side of the code, it's not particularly useful. I'm planning to provide a better overview soon, though.
h2. Installation and Usage
Firstly, you'll want to add Lu Tze as a gem requirement - when you're using Bundler (probably with Rails 3), that's a piece of cake with a single line in your Gemfile:
gem 'lu-tze', '0.2.0', :require => 'lu_tze'
For those using Rails 2.x, it's slightly more complicated - you need it in both @config/environment.rb@:
config.gem 'lu-tze', :version => '0.2.0', :lib => 'lu_tze'
... and then add it to the .gems file that Heroku expects:
lu-tze --version 0.2.0
Heroku's free daily cron job is all that's needed to put it all together - I use something like the following in @lib/tasks/cron.rake@:
task :cron => :environment do
LuTze.gather_and_send
endh2. Copyright
Copyright (c) 2010 Pat Allan, released under an MIT licence.