More Related Content Similar to Drush 5.0: New Features, Powers for Drupal Fundamentals Similar to Drush 5.0: New Features, Powers for Drupal Fundamentals (20) More from Chris Charlton (11) Drush 5.0: New Features, Powers for Drupal Fundamentals2. Chris Charlton
Author • Community Leader • Drupal Contributor
Co-Inventor of the iHoodie for iPad
http://xtnd.us
http://chrischarlton.us
@charltonweb
17. Drush Site Archiving Example
drush archive-dump example.com
--destination=/backups/example.com.tar
drush archive-restore ./example.com.tar
19. Drush Shell Aliases Examples
$options['shell-aliases']['pull'] = '!git pull';
$options['shell-aliases']['noncore'] = 'pm-list --no-core';
$options['shell-aliases']['sync-dev'] =
'!drush sql-sync @prod @dev &&
drush rsync @prod:%files @dev:%files'
$options['shell-aliases']['restart-apache'] =
'!sudo /etc/init.d/apache2 restart'
24. Download Modules, Themes, anything
one command will change your life
Update all Modules & Drupal core
okay, two commands will change your life
26. Download Modules, Themes, anything
one command will change your life
Update all Modules & Drupal core
okay, two commands will change your life
28. Enable Modules
drush en admin_menu
drush en admin_menu devel metatag
29. Manage Modules & Themes
enable, disable, uninstall effortlessly
Control user accounts
change passwords in 0.1 seconds
31. Manage Modules & Themes
enable, disable, uninstall effortlessly
Control user accounts
change passwords in 0.1 seconds
40. Run Cron
drush watchdog-show
Id Date Severity Type Message
2 20/Apr 16:21 info system session expired.
1 20/Apr 16:20 info system node 13 published.
43. Sync Files
drush rsync @prod @dev
drush rsync @prod @dev --include-conf
drush rsync @prod:%files @dev:%files
45. Sync files & databases
ninjas do it silently
Connect to database servers
it’s practically teleportation
46. Run Cron
drush sql-cli
drush sql-connect
47. Sync files & databases
ninjas do it silently
Connect to database servers
it’s practically teleportation