How to skip specific tables with drush sql-dump? I have a drush config file ~/.drush/drushrc.php:

if (!isset($options['structure-tables']['common'])) {
  $options['structure-tables']['common'] = array(
    'cache', 'cache_*', 'history', 'search_*', 'sessions', 'watchdog'
  );
}

$options['structure-tables']['common'] = array_merge($options['structure-tables']['common'], 
  array('ctools_css_cache', 'ctools_object_cache', 'logz', 'views_object_cache')
);


And I have a bash script file:

/usr/bin/drush sql-dump --root="/home/username/domains/sitename/www" --skip-tables-key="common" --gzip --result-file=/home/username/backup/$year/$month/dbname_$date_now_time.sql


But when I execute it the backup file still have data in cache tables. 
What am I doing wrong? 

And second question is - If I put this into crontab do I need to put configuration file somewhere else?

I use Drush version 8.
Dump all tables except the cache table and tables starting with cache_.

drush sql-dump --skip-tables-list=cache,cache_* &gt; dumpfile.sql


Database structure only. No data at all.

drush sql-dump --extra=--no-data &gt; dumpfile.sql


Data only. No cache data and no cache structure.

drush sql-dump --skip-tables-list=cache,cache_* --data-only &gt; dumpfile.sql


No cache data but dump in their structures.

drush sql-dump --structure-tables-list=cache,cache_* &gt; dumpfile.sql


sql-dump documentation