Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Well, I am actually going to tell you that you should do this differently. From my perspective the purpose of backups is to get back to a working scenario as quickly as possible. That is only possible if your backups cover all databases and all code on your server. Depending on your choice of recovery speed this may include the OS itself (unbeaten for bare metal recovery).

So my suggestion would be to install bacula and configure it to cover all your websites and all databases, plus everything in etc or wherever you have customized configuration files. That way you can retrieve individual files if needed, or you can just recover everything in one swell foop.

share|improve this answer
    
Sounds good, thanks. –  Andy Oct 6 '10 at 8:23

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.