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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • drush sql-sync
Pages: [1]

Author Topic: drush sql-sync  (Read 16889 times)

fen

  • I post frequently
  • ***
  • Posts: 216
  • Karma: 13
    • CivicActions
  • CiviCRM version: 3.3-4.3
  • CMS version: Drupal 6/7
  • MySQL version: 5.1/5.5
  • PHP version: 5.3/5.4
drush sql-sync
July 31, 2013, 09:16:53 am
"drush sql-sync @live @dev" is super handy, but it only syncs the Drupal databases.  I know that a completely separate set of drush aliases can be created to sync the CiviCRM dbs, but is there a way (using drush aliases) to get drush to sync both Drupal and CiviCRM databases in a single command?

(Maybe this is more of a Drupal forum question, but I thought I'd ask here first as it affects our community more.)

JoeMurray

  • Administrator
  • Ask me questions
  • *****
  • Posts: 578
  • Karma: 24
    • JMA Consulting
  • CiviCRM version: 4.4 and 4.5 (as of Nov 2014)
  • CMS version: Drupal, WordPress, Joomla
  • MySQL version: MySQL 5.5, 5.6, MariaDB 10.0 (as of Nov 2014)
Re: drush sql-sync
August 31, 2013, 05:17:59 pm
Heh Fen, did you ever work out an answer on this?
Co-author of Using CiviCRM https://www.packtpub.com/using-civicrm/book

fen

  • I post frequently
  • ***
  • Posts: 216
  • Karma: 13
    • CivicActions
  • CiviCRM version: 3.3-4.3
  • CMS version: Drupal 6/7
  • MySQL version: 5.1/5.5
  • PHP version: 5.3/5.4
Re: drush sql-sync
September 01, 2013, 08:03:45 pm
Nope, but I'm going to be coming back to the question, at the end of the month (I believe). In the mean time, let me know if you come up with something.

I also have a local version of --sanitize-mail that adds %hash == md4(mail) so that one can sanitize Drupal (WP,J) addresses in the same way CiviCRM sanitizes to support matching.  I wrote it for drush 4 and need to clean it up and contribute it in hopes it becomes standard.

Oh, if only I had more time... ;)

Slovak

  • I post occasionally
  • **
  • Posts: 89
  • Karma: 3
    • My website
  • CiviCRM version: 3.4.x, 4.2.x
  • CMS version: Drupal 6.x, 7.x
  • MySQL version: 5.5.29
  • PHP version: 5.3.10
Re: drush sql-sync
June 21, 2014, 11:58:12 am
Fen - did you make any progress on the sanitize options?

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • drush sql-sync

This forum was archived on 2017-11-26.