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.)

installgem install dbdump_command

Will Bryant

2,661 total downloads 701 for this version


gem 'dbdump_command', '~> 1.3.0'
  1. 1.3.0 July 6, 2013 (8 KB)
  2. 0.2.1 August 18, 2012 (7 KB)
  3. 0.2.0 August 18, 2012 (7 KB)
Runtime Dependencies
  1. activerecord >= 0
Development Dependencies
  1. rake >= 0