Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Capistrano Tasks for dumping and transfering production databases

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 .gitignore
Octocat-spinner-32 GPL_LICENSE
Octocat-spinner-32 MIT_LICENSE
Octocat-spinner-32 README.rdoc
Octocat-spinner-32 VERSION
Octocat-spinner-32 cap_db_dump.gemspec
README.rdoc

CAP DB DUMP

Capistrano recipes for backing your production database and transferring it to your local machine.

INSTALLATION

  1. Install the gem in bundler's Gemfile:

gem 'cap_db_dump'

$ bundle install
  1. Require the gem in the cap file:

require 'cap_db_dump/recipes'

Finally, add the :db_dump => true flag on the server where you'd like the mysqldump to run:

task :staging do
  role :web,                  'example.com'
  role :app,                  'example.com'
  role :db,                   'example.com', :primary => true, :db_dump => true
end

USAGE

Create a dump:

cap database:dump

Create a dump, and transfer it with scp:

cap database:dump_and_transfer

Only dump the schema for a given set of tables (don't dump the data):

set :schema_only_tables, [:sessions, :my_large_table]

Contributors:

Conor Hunt (conorh)
Stephen Schor (nodanaonlyzuul)

COPYRIGHT

Copyright © 2008 Scott Taylor / Eastmedia <scott@eastmedia.com> Released under the MIT + GPL licenses

Something went wrong with that request. Please try again.