Skip to content

Instantly share code, notes, and snippets.

@larowlan
Created May 19, 2014 02:44
Show Gist options
  • Save larowlan/4f4c9ced3cc6d860a807 to your computer and use it in GitHub Desktop.
Save larowlan/4f4c9ced3cc6d860a807 to your computer and use it in GitHub Desktop.
drushrc.php to exclude cache tables
<?php
$options['structure-tables']['cache'] = array('queue', 'cache', 'cache_form', 'cache', 'cache_apachesolr', 'cache_block', 'cache_bootstrap', 'cache_entity_comment', 'cache_entity_file', 'cache_entity_node', 'cache_entity_taxonomy_term', 'cache_entity_taxonomy_vocabulary', 'cache_entity_user', 'cache_field', 'cache_filter', 'cache_form', 'cache_image', 'cache_libraries', 'cache_media_xml', 'cache_menu', 'cache_metatag', 'cache_page', 'cache_path', 'cache_rules', 'cache_token', 'cache_update', 'cache_views', 'cache_views_data', 'ctools_css_cache', 'ctools_object_cache');
@jibran
Copy link

jibran commented May 22, 2014

// From Drush 6.
/**

  • List of tables whose data is skipped by the 'sql-dump' and 'sql-sync'
  • commands when the "--structure-tables-key=common" option is provided.
  • You may add specific tables to the existing array or add a new element.
    /
    $options['structure-tables']['common'] = array('cache', 'cache
    _', 'history', 'search_*', 'sessions', 'watchdog');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment