Thingy Ma Jig: A Blog of Drupal, Technology and General Bloginess: Backing up a Drupal Database: Redux
Backing up a Drupal Database: Redux
Back in November last year, I wrote a script which handled backing up a drupal database. There were quite a few comments and I've taken some on board and developed the script on a little further to be more "generic".
One of the main complaints/suggestions about my previous snippet was the hard coded nature of it. The follow script offers far more configuration through the command line itself.

