I'm trying to synchronize a production database to two development installations at once, instead of having the production database dumped twice.
In aliases.drush.inc
file I'm defining a site-list alias as following:
$aliases['dev'] = array(
'site-list' => array('@dev1', '@dev2'),
);
$aliases['prod'] = array(
'uri' => 'default/prod',
'root' => '/docroot/prod',
'db-url' => 'mysqli://root:pass@localhost/prod',
);
$aliases['dev1'] = array(
'uri' => 'default/dev1',
'root' => '/docroot/dev1',
'db-url' => 'mysqli://root:pass@localhost/dev1',
);
$aliases['dev2'] = array(
'uri' => 'default/dev2',
'root' => '/docroot/dev2',
'db-url' => 'mysqli://root:pass@localhost/dev2',
);
Running a Drush command against any of these aliases works fine.
Running drush @dev status
works fine too, and displays the status for both @dev1
and @dev2
.
However, trying to execute drush sql-sync @prod @dev
gives me the following error:
Error: no alias record could be found for @dev
Do you have any clues?
drush sql-sync @prod @dev1
? What happens when you rundrush sql-sync @prod @dev.dev1
?