Project

db_tasks

0.0
No commit activity in last 3 years
No release in over 3 years
Currently just a MySQL import script for copying from a MySQL server by SSHing into a production box.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

DB Tasks¶ ↑

Currently just a MySQL import script for copying from a MySQL server by SSHing into a production box.

Installation¶ ↑

Add the following line to your Gemfile. You probably want it inside a :development group.

gem 'db_tasks'

Usage¶ ↑

You get a db:import_production task. This requires that ssh_username and ssh_host keys are added to the production stanza of your config/database.yml.

This task SSHs to the host, then runs a mysqldump using the credentials defined for your production database. It bzips and stores the dump both on the server and locally, then sends the dump to your local database.

It’s assumed that there’s no password on your local database.