One-liner for fetching the live-database on your dev server (or localhost)


Being in your Drupal project directory use this command to fetch db from the site (live site) that site on a remote server and import it into your current local (dev) site (snippet source -

Get raw version
  1. ssh "drush --root=/path/in/remote/server sql-dump" | drush sql-cli


marcvangend's picture

Maybe I misunderstand, but why wouldn't you use drush sql-sync?