Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Easy use backup gem with Rails.

tree: 1a78616932

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 examples
Octocat-spinner-32 lib
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 backup_rails.gemspec
README.md

BackupRails

Easy use backup gem with Rails.

Installation

Add this line to your application's Gemfile:

gem 'backup_rails'

And then execute:

$ bundle

Or install it yourself as:

$ gem install backup_rails

TODO

  • Add Rails generator for simple backup scripts.

Usage

For now just add the gem to your Gemfile. Move the files in /examples dir into your project. Run whenever to setup your cron job. Make sure you've set the RAILS_ENV correctly.

whenever --update-crontab
crontab -l # Check if everything got updated correctly

When cron jobs are not run make sure you:

sudo touch /etc/cron.deny

Contributing

Very welcome.. :)

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request
Something went wrong with that request. Please try again.