0.0
No commit activity in last 3 years
No release in over 3 years
This plugin adds a dbdump command which dumps your Rails database out. This master branch supports Rails 3.0 and above, as a gem command. For Rails 2.3, use the rails_2_3 branch from github and install as a plugin. Like rails dbconsole, it takes your database connection details from config/database.yml, and supports mysql, mysql2, postgresql, and sqlite. It takes the same options as rails dbconsole, ie. -p to supply the password to your dump program for mysql and postgresql. (Note that for mysql, this means that the password is visible when other users on the system run 'ps'. Postgresql does not have this problem as it uses an environment variable set in ENV before execing and so not visible in ps.)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

 Project Readme
DbdumpCommand
=============

This plugin adds a script/dbdump command which dumps your Rails database out.

This master branch supports Rails 3.0.  For Rails 2.3, use the rails_2_3 branch.

Like script/dbconsole, it takes your database connection details from
config/database.yml, and supports mysql, postgresql, and sqlite.

It takes the same options as script/dbconsole, ie. -p to supply the password
to your dump program for mysql and postgresql.   (Note that for mysql, this
means that the password is visible when other users on the system run 'ps'.
Postgresql does not have this problem as it uses an environment variable set
in ENV before execing and so not visible in ps.)


Example
=======

RAILS_ENV=production script/dbdump -p >mysite_production_`date +%Y-%m-%d`
  - dumps your production database to a file named like mysite_production_2009-01-27.


Copyright (c) 2009-2011 Will Bryant, Sekuda Ltd, released under the MIT license