I am new to use Drush.
this following is my .drushrc.php file
$aliases['server'] = array (
'remote-host' => '162.243.78.240',
'remote-user' => 'root',
);
$aliases["dxb"] = array (
'#name' => 'dxb',
'root' => '/var/www/dev/daxuebao',
);
I try to use this following command to sync local site to remote site
$ drush rsync @self @dxb
But it alert me:
rsync: mkdir "/var/www/dev/daxuebao" failed: No such file or directory (2)
rsync error: error in file IO (code 11) at /SourceCache/rsync/rsync-42/rsync/main.c(544) [receiver=2.6.9]
rsync: connection unexpectedly closed (8 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at /SourceCache/rsync/rsync-42/rsync/io.c(452) [sender=2.6.9]
Could not rsync from /Users/tangmonk/Sites/drupal/daxuebao// to [error]
/var/www/dev/daxuebao/
It seems directory /var/www/dev/daxuebao
do not exist, so I try to mkdir to my server :
$ mkdir /var/www/dev/daxuebao
The I type $ drush rsync @self @dxb
again, But still above problem.
How to solved it?
/var/www/dev/daxuebao
definitely exists? As in, if you typecd /var/www/dev/daxuebao
from your command line, it resolves to the expected location, and doesn't give a "No such file or directory" error?/var/www/dev/daxuebao
is exist. I updated my question, please help me./var/
,/var/www/
or/var/www/dev
doesn't exist on the remote server. Or maybe it's a permissions problem, couldn't really say from here I'm afraidroot
user, Probably not a permissions issue. And the/var/
,/var/www/
and/var/www/dev
directory is exist.