I configured the site aliases for the development, and staging sites. I have the <DRUPAL_HOME>/sites/default/aliases.drushrc.php
aliases file with this content:
$aliases['dev'] = array(
'root' => '/home/drupaltest',
'uri' => 'localhost',
'path-aliases' => array('%dump' => '/home/drupaltest/dump.sql')
);
$aliases['stage'] = array(
'root' => '/home/drupaltest',
'uri' => 'naftalin',
);
$aliases['all-scratch'] = array(
'site-list' => array('@dev', '@stage'),
);
drush @dev status
outputs:
hubidubi@couscous:/home/drupaltest$ drush @dev status Drupal version : 6.25
Site URI : localhost
Database driver : mysqli
Database hostname : localhost
Database username : root
Database name : drupaltest
Database : Connected
Drupal bootstrap : Successful
Drupal user : Anonymous
Default theme : garland
Administration theme : garland
PHP configuration : /etc/php5/cli/php.ini
Drush version : 4.4
Drush configuration :
Drush alias files : /home/drupaltest/sites/default/aliases.drushrc.php Drupal root : /home/drupaltest
Site path : sites/default
File directory path : sites/default/files
Then I tried to run drush rsync @dev @stage
command to sync dev site to stage and I get:
Could not evaluate source path @dev.
I can't figure out the problem; I think the alias file is correct.
Do you have any idea?