Permalink

Thanks for writing up this great article on Drush Rebuild. Scripting in php is a powerful way to customize your development site after sql-sync. There is an example in the Drush-5 examples folder to show how to automatically enable and disable modules post-sync; see:

http://drupalcode.org/project/drush.git/blob/HEAD:/examples/sync_enable....

It is not necessary to use a post-sync hook, of course; it is perfectly valid to make a wrapper script such as you have done to roll all of the operations together, and it is, in fact, probably easier to understand the way you have done it. Looks good.

Restricted HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.