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.. :)
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request