drush rsync dev stage does not work, but drush rsync dev:%root stage:%root does. The problem is that in the former, there is no trailing slash on the source path, so you get an extra folder (and another copy of all of your files). That is, the former produces 'rsync /path/to/drupal /path/to/drupal' while the later correctly produces 'rsync /path/to/drupal /path/to/drupal/'.

Not sure when this broke, but I'll fix it shortly.

CommentFileSizeAuthor
#2 drush-rsync-root.patch1.56 KBgreg.1.anderson

Comments

greg.1.anderson’s picture

Priority: Normal » Critical

Typo:

I meant to say that the later correctly produces 'rsync /path/to/drupal/ /path/to/drupal/'.

greg.1.anderson’s picture

Status: Active » Needs review
StatusFileSize
new1.56 KB

This patch insures that the drupal root will always end in a '/' when used in an rsync path, which will insure correct behavior per rsync path conventions.

moshe weitzman’s picture

Status: Needs review » Fixed

committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.