drush

snippetKeeping Files in Sync Using Drush

After changing my drupal file system on my development machine I would like to keep them in sync with live files using drush aliases via the command line.

Firstly I need to create key pairs for both development & live site ssh logins. Once I can login in between each of the servers I need to create aliases.drushrc.php file on each of the logins.

$ mkdir ~/.drush/
$ touch ~/.drush/aliases.drushrc.php

snippetMoving Drupal System Files

I'm Just starting to prepare my site to get ready for a drupal 7 upgrade which involves cleaning up the database with the Schema module which I've just about completed. It's been on drupal since 4.7 / 5.0 so the files directory is still in the site webroot rather than
the sites/example.com/files so I thought it's finally time to move.

snippetInstall Drush (Drupal Shell) in /opt

First change to super user

$ su

Change to /opt directory

$ cd /opt

Grab a copy of drush with wget

$ wget http://ftp.drupal.org/files/projects/drush-7.x-4.4.tar.gz

Pages