I tried adding exclude paths and file patterns to my drush alias; it didn't work, but adding the filters with --exclude= in the command works.

```
drush rsync --exclude=imagecache/* --exclude=ctools/* --exclude=js/* --exclude=tmp/* --exclude=xmlsitemap/* --exclude=*.doc* --exclude=*.DOC* --exclude=*.pdf* --exclude=*.PDF* --exclude=*.ppt* --exclude=*.PPT* --exclude=*.zip --exclude=*.ZIP --exclude=*.xls* --exclude=*.XLS* @sitename.live:%files @sitename.local:%files

```

(I wanted to create the directories but skip the contents)

I looked at a [similar question](https://drupal.stackexchange.com/questions/24841/drush-rsync-not-excluding-paths-specified-in-exclude-paths-in-aliases-drush) but I'm not sure what I am doing wrong.

The docs for [drush core-rsync](http://drush.ws/#core-rsync) explain:

> 
> --exclude-paths List of paths to exclude, seperated by : (Unix-based systems) or ; (Windows).
> 
> 
> 

here is what I tried:

```
$aliases['live'] = array(
  'root' => '/var/www/[domain]/htdocs',
  'uri' => '[site uri]',
  'remote-host' => '[host ip]',
  'remote-user' => 'rgoya',
  'path-aliases' => array(
    '%files' => 'sites/default/files',
  ),
  'command-specific' => array(
        'sql-sync' => array(
            'no-cache' => TRUE,      
        ),
        'rsync' => array (
            'mode' => 'rlptDz',
            'exclude-paths' => 'css:imagecache:ctools:js:tmp::xmlsitemap',
            'exclude' => '*.tmp',
            'exclude' => '*.doc*',
            'exclude' => '*.zip',
            'exclude' => '*.xls*',
        ),
    ), 
);

```

I also tried 'mode' => 'azv'

**Also**, can I use regexp in the exclude patterns? some extensions are lowercase, some are uppercase .pdf / .PDF