CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions (Moderator: Dave Greenberg) »
  • drush civicrm-sql-sync
Pages: [1]

Author Topic: drush civicrm-sql-sync  (Read 619 times)

ñull

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
  • CiviCRM version: 4.6.8
  • CMS version: Drupal
  • MySQL version: 5.5.41
  • PHP version: 5.4.39
drush civicrm-sql-sync
June 15, 2015, 10:24:55 am
Would be nice to have the same functionality as drush sql-sync allowing you to synchronize between a developer and production site.

BTW would this work?:

drush @prod civicrm-sql-dump | drush @dev civicrm-sql-query

JonGold

  • Ask me questions
  • ****
  • Posts: 638
  • Karma: 81
    • Palante Technology
  • CiviCRM version: 4.1 to the latest
  • CMS version: Drupal 6-7, Wordpress 4.0+
  • PHP version: PHP 5.3-5.5
Re: drush civicrm-sql-sync
June 15, 2015, 11:33:03 am
Hi there,

I think what you'd want would actually be:

drush @prod civicrm-sql-dump | drush @dev civicrm-sql-cli

I've got that on my to-do list to test - but I have every expectation that it would work.
Sign up to StackExchange and get free expert CiviCRM advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions (Moderator: Dave Greenberg) »
  • drush civicrm-sql-sync

This forum was archived on 2017-11-26.