Community

Is there any way i can do selective database sync using drush where i avoid sync of user and content table ?

I am trying to do database sync from staging to production using drush.Every time i do sync it replaces all the live content on my production db.

Is there any way i can do selective database sync using drush where i avoid sync of user and content table ?

Comments

example.drushrc.php

Look in the example.drushrc.php file (located in the examples directory of your Drush install). Right around line 257 is an example of using $options['tables']['common'] to define a list of tables to include in the dump. At line 269 are instructions on how to define a list of tables to exclude from the dump using $options['skip-tables']['common'].
More info on syncing dev & prod sites is here.

--BitRadiator

nobody click here