I'm mostly a Drupal developer, and have a backup script that goes through each site and uses Drush to perform a db dump, before archiving all the sites and their dumps. I've just finished a small Wordpress project, and so now my script can't automatically back that site up. I was wondering if anybody knew of any pre-existing scripts that could handle backing up a variety of typical open-source web CMSs? Ideally it would discover the db name (and prefix if necessary) and dump it; allow me to specify some areas not to back up (eg. large images directory); and work with rsync, although that's for future use.
Any suggestions, or advice to tell me I'm thinking about it all wrong?