I have the following in my aliases.drushrc.php
file --
$aliases['prod'] = array(
'uri' => 'foo.com',
'root' => '/var/www/foo/htdocs',
'remote-host' => '123.456.78.90',
'remote-user' => 'bob',
'databases' =>
array (
'default' =>
array (
'default' =>
array (
'driver' => 'mysql',
'username' => 'foo',
'password' => 'bar',
'port' => '',
'host' => 'localhost',
'database' => 'foodb',
),
),
),
'shell-aliases' => array (
'dump' => '!drush sql-dump --gzip --ordered-dump',
),
);
When I run drush @prod dump
it attempts to connect to 'remote-host'
. If I comment out 'remote-host'
it dumps just as expected. I do need this value though for other functions such as sql-rsync
.
I could create a new alias just for dumping but this seems a little excessive.
Any ideas?