Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 49 lines (32 sloc) 1.429 kB
1f6e4d3 @xaviershay README as rdoc
authored
1 = DB2S3
2
3 A rails plugin to backup Mysql to Amazon S3. You're looking at a monthly spend of four cents. So pony up you cheap bastard, and store your backups on S3
4
60a59ff @xaviershay Add note about db2fog in the README.
authored
5 == This gem is unmaintained
6
7 I don't use this gem anymore so cannot maintain it. There is a newer, shinier alternative called db2fog which supports many different backends, not just S3, and doesn't rely on the aws-s3 gem which is a bit crufty:
8
9 https://github.com/yob/db2fog
10
11 You should use that rather than this.
12
1f6e4d3 @xaviershay README as rdoc
authored
13 == Usage
2f6445f @xaviershay Initial commit
authored
14
d73b244 @xaviershay README update
authored
15 # In config/environment.rb
07c31e9 @xaviershay Use jeweller and gemcutter
authored
16 config.gem "db2s3", :source => "http://gemcutter.org"
d73b244 @xaviershay README update
authored
17
18 # In Rakefile
19 require 'db2s3/tasks'
20
6294873 @xaviershay README
authored
21 # In config/initializers/db2s3.rb
60b0cc1 @xaviershay README
authored
22 DB2S3::Config.instance_eval do
23 S3 = {
24 :access_key_id => 'yourkey',
25 :secret_access_key => 'yoursecretkey',
26 :bucket => 'yourapp-db-backup'
27 }
28 end
29 # DB credentials are read from your rails environment
30
d73b244 @xaviershay README update
authored
31 rake gems:install
32
6294873 @xaviershay README
authored
33 # Add to your crontab or whatever
2f6445f @xaviershay Initial commit
authored
34 rake db2s3:backup:full
35 rake db2s3:backup:incremental # Unimplemented
96b6af3 @xaviershay rake db2s3:metrics - provides estimated costing
authored
36
37 # Handy tasks
86db61e @xaviershay Version bump to 0.3.0
authored
38 rake db2s3:statistics # Shows you the size of your DB
96b6af3 @xaviershay rake db2s3:metrics - provides estimated costing
authored
39 rake db2s3:backup:restore # You should be testing this regularly
f0c52b5 @xaviershay README fix (thanks foresth)
authored
40 rake db2s3:backup:clean # Clean up old backups - cron this
8bc8424 @xaviershay Kudos to Paul
authored
41
1f6e4d3 @xaviershay README as rdoc
authored
42 == Development
43
686e4e6 @xaviershay YAGNI Jeweler
authored
44 Specs are really week. This code is bit hackish but is being used by quite a few people.
1f6e4d3 @xaviershay README as rdoc
authored
45
46 == Kudos
f42c9ca @xaviershay Extra README
authored
47
1f6e4d3 @xaviershay README as rdoc
authored
48 http://github.com/pauldowman/blog_code_examples/tree/master/mysql_s3_backup
Something went wrong with that request. Please try again.