Easy use backup gem with Rails.
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install backup_rails
- Add Rails generator for simple backup scripts.
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
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