drush

Drush back up system for Drupal site

Here is an example of how you can set up a back up system for a Drupal web site with Drush. Daily backups are kept for a week, after which they are deleted, and the weekly, full backups are deleted after 30 days. This script comes with no warranties of any kind, as always, test thoroughly before using it.

Drush commands

To quickly find the most used drush commands, execute this one-liner in your terminal:

history | grep drush | awk '{print $3}' | sort | uniq --count | sort --numeric-sort --reverse | head -30