rsnapshot: rsync-Based Filesystem Snapshot

Tip of the Trade: Snapshot filesystems may be great, but migrating to a new filesystem is a major deal. If you're not up for it, rsnapshot makes achieving snapshot-like functionality a snap.


You Can't Detect What You Can't See: Illuminating the Entire Kill Chain

On-Demand Webinar

Posted August 27, 2008

Juliet Kemp

Juliet Kemp

Snapshot filesystems, which offer instant-availability backups from multiple time points, are a great idea. But migrating to a new filesystem is a major deal. rsnapshot works on an ext3 filesystem, using rsync and hard links to create something that looks and works like multiple instant-availability full backups (as with a snapshot system), but that takes up the space of only one full backup plus incremental changes.

That "full backup space" is of course still the gotcha — basically, you'll need a spare disk. However, external disks are increasingly cheap; and rsnapshot can be used remotely with ssh. So you could use one large central disk to keep snapshots of your most important data from multiple clients.

rsnapshot is relatively easy to configure. Check /etc/rsnapshot.conf for the minor edits needed (make sure to uncomment the "interval" lines), then try a test run from the command line with rsnapshot hourly. The interval names don't actually matter; they're just used to define how many snapshots of each type are kept. The actual run intervals are defined using the crontab — a reasonable crontab example is provided.

The first run may take a while (as always with a first run of rsync). Subsequent runs will be much faster as the files are updated from the snapshot. Usefully, it's possible to set it up so any user can pull his or her own backups, rather than relying on root access — thus minimizing your work later on!

rsnapshot should run on nearly any Unix-type system (requiring only perl and rsync), and is available as a package for most of the major Linuxes.

This article was first published on ServerWatch.com.

Tags: data, IT, Unix, backup

Comment and Contribute


(Maximum characters: 1200). You have characters left.



IT Management Daily
Don't miss an article. Subscribe to our newsletter below.

By submitting your information, you agree that datamation.com may send you Datamation offers via email, phone and text message, as well as email offers about other products and services that Datamation believes may be of interest to you. Datamation will process your information in accordance with the Quinstreet Privacy Policy.