Beyond rsync

rdiff-backup is almost a superset of rsync in many ways. It claims to combine the "best features of a mirror and an incremental backup", and if you are forced to pick only one tool to do your backups, this is probably the best one.

The features that make rdiff-backup really stand out are:

  1. Much saner logic for file inclusions and exclusions compared to rsync, while still using the same wonderful difference algorithm to reduce network traffic.
  2. Keeps the latest version just like rsync does (like a mirror), but also keeps older versions as compressed (and reversed) rsync-style diffs within a new directory tree called rdiff-backup-data on the target disk. What rsync does only for network bandwidth, rdiff-backup extends to disk space also! Very cool...
  3. Very easy to retrieve older versions.
  4. Just as easy to purge really old versions that you no longer care about!

How is it used?

When is it useful?

When you have enough space on another machine you trust, or, failing that, on a second hard disk on your own machine, this is the best way to backup your stuff. Pretty much fire-and-forget!!

If you have enough free disk, even backing up to the same hard disk may be worthwhile, because you're at least protected from human error or software bugs causing lost data.

It is so efficient in both time and space that you can probably take a backup as often as you like. Let cron do it once a day, but by all means take another one manually at the end of a long hard day's work!

You still need to do the following:

What are the downsides?

Nothing major really, but you need to remember that this is a mirror, not a backup in the normal sense. For instance, you can't encrypt a mirror, so you should only use machines you trust as the targets.

dar, the subject of the next article, allows encryption, offsite/offline backups, and other features besides, but then of course it's not a mirror, and it can't use the rsync algorithm so it's not as efficient! You can't have everything in one software, as I said in the first article!

What next?

Well, the next chapter: A true backup solution -- dar