Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ariossw-db2s3

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ariossw-db2s3

  • 0.2.5
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

DB2S3 - 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

Usage:

In config/environment.rb

config.gem "xaviershay-db2s3", :lib => "db2s3", :source => "http://gems.github.com"

In Rakefile

require 'db2s3/tasks'

In config/initializers/db2s3.rb

DB2S3::Config.instance_eval do S3 = { :access_key_id => 'yourkey', :secret_access_key => 'yoursecretkey', :bucket => 'yourapp-db-backup' } end

DB credentials are read from your rails environment

rake gems:install

Add to your crontab or whatever

rake db2s3:backup:full rake db2s3:backup:incremental # Unimplemented

Handy tasks

rake db2s3:metrics # Estimated costs rake db2s3:backup:restore # You should be testing this regularly

Caveats: Currently does not clean up old back ups

Kudos: http://github.com/pauldowman/blog_code_examples/tree/master/mysql_s3_backup

FAQs

Package last updated on 11 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc