This lib help you backup database (currently is just mysql) and paperclip data files which store in public/system directory.
Add this line to your application's Gemfile:
gem 'jbackup_rails'
And then execute:
$ bundle
Or install it yourself as:
$ gem install jbackup_rails
You can backup database by this rake command:
- rake db:backup RAILS_ENV=production
By defining environment, you can tell it which database you want.
** Note: backups saved in $HOME/dbs directory.
- 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