My Backup Strategy
Now that a new year is here I really need to finish some points of my To-Do list! Here we go… As I said few weeks ago, maybe a little bit delayed, here comes how I backup all my stuff. This post is not a how-to. It’s just a configuration example. If you want a howto use this link.
Some theory I have a central fileserver, some application servers (Web, Mail, MySQL) and a few workstations (Mac, Win, Linux). All I want is a simple way to backup databases, mails, configs and of course documents on my fileserver to an external harddisk. But there is no do-it-all tool. There are many small and some bigger tools to do what I want. Some of them look unmaintained, some of them are hard to setup and some… ah let’s say I didn’t like them The two lists at debianhelp.co.uk (list1, list2) were very helpful to me.
For me it all came down to two tools: Backuppc and Rsnapshot. Backuppc is a big tool. It’s designed for large networks with serveral Workstations. Besides Rsync over SSH it does support backing up Windows machines natively over SMB and has a (in my eyes pretty ugly and unclear) WebInterface to manage your backup jobs… I haven’t managed to setup a single backup job in 30 minutes through the Webinterface, but I didn’t RTFM though. Backuppc has some nice features that Rsnapshot is lacking: compressing, nice restore options, reminders… Rsnapshot is more closely to the “one job one tool” philospohy of UNIX. It uses Rsync over SSH. You can also use Rsnapshot to backup your Windows machines, but you’ll have to install cwRsync on every Windows machine. Setup is (in my eyes) very easy… just modify the well documented rsnapshot.conf to your needs and let rsnapshot run via cron.
My Backup strategy I choose rsnapshot to backup at least my documents and configs (time will show how well it performs for maildir) and AutoMySQLBackup for (guess what?) MySQL. Since configuration is that easy I’ll just show my snippets from rsnapshot.conf
Configs, Documents & Stuff on the machine rsnapshot runs on:
|
|
|
|
|
|
|
|
Now that you know how I backup, it’s time to read a bit about restoring. Fortunately with rsnapshot it’s as easy as copying the relevant files/directories from the backup to it’s origin through commandline (use cp or maybe rsync), midnight commander or whatever you want…