Hi,

When I try this command
sudo drush rsync @prod @dev1
I get this explicit error

You will destroy data from /home/vhosts/bioscene/dev1/ and replace with data from /home/vhosts/bioscene/prod//
Do you really want to continue? (y/n): y
rsync: --php=/usr/bin/php: unknown option
rsync error: syntax or usage error (code 1) at main.c(1443) [client=3.0.7]
Could not rsync from /home/vhosts/bioscene/prod// to /home/vhosts/bioscene/dev1/                                  [error]

Is it a confirguration problem on my side?
Thank you.

Comments

Thithi32’s picture

In debug mode I get this extra info:

Calling system(rsync -e 'ssh ' -akzv --exclude=".git" --exclude=".gitignore" --exclude=".hg" --exclude=".hgignore" --exclude=".hgrags" --exclude=".bzr" --exclude=".bzrignore" --exclude=".bzrtags" --exclude=".svn" --exclude="settings.php" --stats --progress --php=/usr/bin/php /home/vhosts/bioscene/prod// /home/vhosts/bioscene/dev1/);

--php=/usr/bin/php shouldn't appear and /home/vhosts/bioscene/prod// has an extra / at the end.
Any way to getit work?

moshe weitzman’s picture

Status: Active » Closed (duplicate)
Thithi32’s picture

Hi Moshe,
I don't see the duplicated issue?
Are you saying that it is the same problem as my other issue about sql-sync?

Thithi32’s picture

Thank you. That was it. Now I manage to make it work.
which drush showed that drush were using an old version of drush and not the lastest I installaed.