Giter Club home page Giter Club logo

simple-s3-backup's Introduction

Simple S3 Backup

A simple Ruby script to back up MySQL database tables, MongoDB databases, full directories, and groups of single files to Amazon S3 (Simple Storage Service).

Steps for using:

  1. Set up an Amazon S3 account: http://aws.amazon.com/s3/
  2. Install the aws/s3 Ruby gem: http://amazon.rubyforge.org/
  3. Rename settings-sample.rb to settings.rb
  4. In settings.rb, fill in specific command paths, your Amazon API credentials, MySQL login info & databases, and any directories you want backed up. Just comment out the constants for backups you don't want to run.
  5. Set the script to run with cron - I have mine run every night, like so:

15 3 * * * /usr/bin/ruby /home/username/backups/simple-s3-backup.rb

NOTE from sdh100shaun

This fork added extra functionality to send a gmail email and requires

ruby-gmail gem

  1. install ruby-gmail https://rubygems.org/gems/ruby-gmail

To do:

  1. Split daily archives into separate directories in the bucket? Would be helpful for those with lots of files, and lots of days

simple-s3-backup's People

Contributors

billturner avatar sdh100shaun avatar joshgoebel avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.