Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3596408
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T19:59:03+00:00 2026-05-18T19:59:03+00:00

For years I’ve used a ssh pipe from mysqldump on the live server to

  • 0

For years I’ve used a ssh pipe from mysqldump on the live server to mysql on my development machine for getting a copy of the current data.

ssh -C <server> mysqldump --opt <live_database_name> |mysql <local_dev_database_name>

Where -C enables ssh compression and --opt enables quickness and completeness.

Does anyone have a rails-ish equivalent rake task for this? Ideally it’d take the database names from config/database.yml

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T19:59:04+00:00Added an answer on May 18, 2026 at 7:59 pm

    https://gist.github.com/750129

    This is not an elegant solution. It’s basically a wrapper for your old method, so it’s not even compatible with other database drivers.

    But it is something you can put in your SCM under lib/tasks to share it with other developers on your team. It also uses config data from your existing config/database.yml file. You define the live db by simply adding another branch to that file and it uses the same key names that Rails do.

    Maybe it would even make sense to reuse the production database configuration.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Years ago when I was starting a small development project, the other developers and
For years I've been using ShellExecute() API to launch the default web browser from
Years ago, in my long lost copy of Charles Petzold's Windows 3.0 Programming book,
Years ago I had a little #define which I used in Borland C++ Builder.
Years ago I used to design with JavaScript disabled browsers in mind. How important
From years I am hearing that soon IPv4 address will run out. When will
For years I have been using the following pattern to remove duplicates from an
Years ago, I switched from Windows to Linux to get a more lightweight and
For years I suffered from a question of what is the name of creature,
10 years ago I did some game programming and used OpenGL for the 3d

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.