How to configure drush command-specific archive-dump --tar-options in a site alias The following command does exactly what I want — It dumps an archive, excluding all of the files and directories that I don't want:

$ drush archive-dump --tar-options="--exclude=.git --exclude=*.psd --exclude=sites/default/files/styles/ --exclude=sites/default/files/private/backup_migrate/manual/"


Can anyone show me how to set these extra command-specific archive-dump tar-options inside a site-alias array in aliases.drushrc.php?

I've tried every variation I can think of, but I can't seem to get the syntax right.

Update Here is a gist with my full test setup including verbose output and -debug info.
It should be like this - Edit: I've just confirmed that the following works as expected with Drush 6.3:

$aliases['example.com'] = array(
  'uri' =&gt; 'example.com',
  'root' =&gt; '/var/www/example.com/public_html',
  'command-specific' =&gt; array (
    'archive-dump' =&gt; array (
      'tar-options' =&gt; '--exclude=directory1 --exclude=sites/all/modules --exclude=*.txt',
    ),
  ),
);


I did notice that %files didn't work (Warning: sprintf(): Too few arguments exec.inc:138).