Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dbdump_command

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dbdump_command

  • 1.3.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 06 Jul 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc