Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
45 lines (26 sloc) 897 Bytes

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