I tell drush this:

drush @live cim --skip-modules=system,swiftmailer  

and Drush replies with this:

  Collection  Config                 Operation                
              swiftmailer.transport  update 
              system.performance     update
  Import the listed configuration changes? (y/n)  

and, if I reply "y", the settings in the live Drupal site are overwritten from settings previously exported from the dev system.

What do I have to do to avoid importing selected parts of an exported configuration?


1 Answer 1


I believe that Config Ignore could help you out here.

Spoiler: I am the maintainer of that module.

Install the module, go to admin/config/development/configuration/ignore and add the names of the config entities that you would like to not to change, when you import.

In this case:


Save, remember to export config_ignore.settings.yml to the config folder (yes, some of us tend to forget that bit) and you should be golden.

  • Thanks. Will look into that. BTW do you exactly what --skip-modules is supposed to do?
    – iainH
    Feb 13, 2017 at 0:40
  • --skip-modules is broken. A lot. I was actually told a few days ago that there is being work done on a more reliable/stable version of how to exclude configuration when using Drush, but I can't point you toward any specific issue that will prove this. Sorry.
    – TLyngeJ
    Feb 14, 2017 at 10:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.