0.0
No commit activity in last 3 years
No release in over 3 years
Run mysqldump in the Rails project.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.15
~> 10.0
 Project Readme

RailsMysqldump

rails_mysqldump run mysqldump in a Rails project.

Installation

Add this line to your application's Gemfile:

gem 'rails_mysqldump'

And then execute:

$ bundle install --path vendor/bundle

or

$ bundle install

Usage

$ bin/rails c
> RailsMysqldump.run

Then, for example, tmp/mysqldump/development_20171102133556.dump file is generated.

When production environment:

$ bin/rails c -e production
> RailsMysqldump.run

Then, for example, tmp/mysqldump/production_20171102133556.dump file is generated.

By default, it is output to tmp/mysqldump .

If you want to output to another directory, execute:

RailsMysqldump.run('path/to/dump')

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/mokuo/rails_mysqldump.