Skip to content

Instantly share code, notes, and snippets.

@dedico
Created April 27, 2011 09:03
Show Gist options
  • Save dedico/943956 to your computer and use it in GitHub Desktop.
Save dedico/943956 to your computer and use it in GitHub Desktop.
Backup::Model.new(:test_backup, 'test backup') do
database MySQL do |db|
db.name = "my_database"
db.username = "db_user"
db.password = "db_password"
db.host = "localhost"
db.port = 3306
db.additional_options = ['--quick', '--single-transaction']
end
store_with S3 do |s3|
s3.access_key_id = 'AMAZON_ACCESS_KEY'
s3.secret_access_key = 'AMAZON_SECRET_ACCESS_KEY'
s3.region = 'eu-west-1'
s3.bucket = 'test'
s3.keep = 7
end
compress_with Gzip do |compression|
compression.best = true
compression.fast = false
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment