Drush RSYNC mode

Events happening in the community are now at Drupal community events on www.drupal.org.
Michael Hofmockel's picture


Last night we were discussing the fact that Drush RSYNC was blowing away the files instead of just updating the files that have changed.

@Steph
Add the --mode option to change the rsync options. Rysnc is defaulted to akz which is a sledge hammer. Mine looks like this now. To avoid the persistent scary "We are going to destroy everything message" I added the while statement.

while true; do echo y; done | drush rsync --mode='rultz' @$alias.preview:%files/ @$alias.local:%files

drush help rsync
...
--mode   The unary flags to pass to rsync; --mode=rultz implies rsync -rultz.  Default is -akz.

image ref: http://metrouk2.files.wordpress.com/2011/03/article-1300283760069-0b32cf...

Comments

Drush uli now opens in browser

Michael Hofmockel's picture

I'm using Drush 6rc2 and it executes the Open by default. So I don't need to add that open command we were talking about.

Drush uli
Initialized Drupal 7.22 root directory at /Users/michael/Sites/example                                                                   
Initialized Drupal site www.example.dev at sites/default                                                                           
Executing: which xdg-open
Executing: which open
Opening browser open at http://www.example.dev/user/reset/1/1374850714/Mnx-roIlHQ9LQ0h44dFDhV6TK...
http://www.example.dev/user/reset/1/1374850714/Mnx-roIlHQ9LQ0h44dFDhV6TKZdDvMTrwChQe77PWKo/login

Regards,
Michael Hofmockel

Open Source || Open Access || Open Mind

Central Iowa Drupal Users Group

Group categories

Category

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week