Backing up your system with free software

Backing up your system with free software

You've spent hours installing,configuring, and tweaking your system into perfection. Everydevice isworking properly, every patch applied, every last last application isup to date, and your system is contently purring like a lion with abelly full of wildebeest. This is a prime time to savean image of your system in case anything screws it up. Thereare manycommercial solutions available, but what free utilities will properlyback up your system?

Wait, what's an image?

Before we go anyfurther, let's define exactly what a hard drive disk imageis. In itssimplest form, it's a file that contains the complete contents andstructure of a drive, partition, or logical disk. The filecan beextracted to restore the contents of a hard drive back to the exactstate it was in when the image was created. Images can becreated ofother forms of media, such as a CD using formats like ISO.

How can I create an image?

An excellent cross-platform free software package for harddisk imaging is Partimage. This utility includes the ability to compress the image on the flyusing GZIP, BZIP2 or LZOto savespace, and to split the image into multiple files to spandisks. Whileit runs on Linux/UNIX, it supports many types of file systems,including ext2fs/ext3fs, Reiser3, Fat16/32, HFS (beta), and NTFS(experimental and functional; hasn't failed me yet). You cantransfer the images over the network with or without SSLencryption. You have two options for interacting with Partimage; through a GUI or by command line.

Why can't I just use dd?

The 'dd' command copies all blocks, including the empty ones,where Partimage only copies data from the used portions of thepartition. Even without compression, Partimage will savepotentially massive amounts of overhead when compared to 'dd'.

Other than backing up a workstation, what else can I use animage for?

Sayyou have a computer lab with 30 machines, all with the exact kind ofhardware. Which would make more sense; configuring each ofthe thirtyindividual computers the same way one at a time, or just send an imageover the network to multiple computers simultaneously, guaranteeingperfect replication of applications and settings. Partimagecan support this client / server scenario as well.

What if I want to manipulate partitions?

While Partimage is limited to creating and replicating images,it's actually part of a larger suite of applications named SystemRescueCd. Based on Gentoo, SystemRescueCd is a bootableLinux distribution that you can use for low level system administrationtasks, such as repairing your system or altering partitions. Itincludes GNU Parted (disk partition editor), QtParted (a Partition Magicclone), Partimage, partition table backup, and many file system toolsto allow you to format, resize, and debug your hard disk. There are also instructions onhow to copyit to a flash drive, in caseyou don't have an optical drive ready or if you just want theconvenience and portability.

Are there other tool collections out there?

Of course. Knoppixis the veritable grandaddy of Linux Live CDs. It's a full-fledged distribution that gives you an entire desktopsystem built to run from a CD. It has hundreds of applicationsand tools;everything except the kitchen sink. Heck, it probably hasthat too. Astripped down, much smaller version of Knoppix called Feather Linuxweighs in under 128MB, and also includes Partimage.

A different, smaller Live CD distribution is DSL(Damn Small Linux) which is primarily aversatile backup and restore system, with the added advantage ofproviding a feature complete desktop that you can bringanywhere. It'sbuilt specifically to fit on a business card CD (less than 50 MB),which gives you lots of space for expansion if you copy it to a flashdrive. Unfortunately, it doesn't support Partimage out of thebox.

Finally, there's CDlinux,which is an extremely small collection oftools (less than 17MB) that provides network support and supports awide range of older hardware. You also can use it as a baseto rollyour own set of tools. However, as it hasn't been updatedsince early2005, I wouldn't recommend it anymore.


I've found Partimage and the SystemRescueCdto be invaluable headache-saving additions to my collection of tools,further freeing myself of the reliance on expensive commercialapplications. You should probably think of making an imagebefore youhave one of the moments where you say, "Hey, let's try this new systemadministration tool I read about on the forums... it's working great...wait, what's this d



Anonymous visitor's picture
Submitted by Anonymous visitor (not verified) on

Backing up FreeBSD locally and remotely:

Anonymous visitor's picture
Submitted by Anonymous visitor (not verified) on

GParted would not recognize the SATA drives on either system I tried in on (attempting to dual boot a new laptop, and testing on an existing desktop to verify GParted's non-functionality). I ended up reformatting, fdisk'ing, and reinstalling both operating systems. It took less time.

Jon Peck's picture
Submitted by Jon Peck on

Interesting... just this past week, I used the SystemRescueCd to repartition and resize my 200+ GB SATA hard drive with NTFS partitions, and I had no problems.

Anonymous visitor's picture
Submitted by Anonymous visitor (not verified) on

Howdy, I have a tutorial here on how to do this with System Rescue CD and Partimage...

Part 1:

Part 2:

Podcast that walks you through the process:

Wishing you well,
Miguel Guhlin
Around the

Anonymous visitor's picture
Submitted by Anonymous visitor (not verified) on

Mondo is really good at making a bootable CD which can restore your system, including partitonning.

Anonymous visitor's picture
Submitted by Anonymous visitor (not verified) on

I saw a recomendation for your software Mondo for backing up my XP system, but I don't know how to download the files. Can someone help this dummy?

Anonymous visitor's picture
Submitted by Anonymous visitor (not verified) on

dd can be made to be very compact indeed if you -first- mount the filesystem, and copy large zero-filled files to it until nearly full. This will zero out all unused clusters, and they will compress to almost nothing. Dont forget to delete the zero-filled files, then unmount the filesystem before you use dd.

:) - RL

clievers's picture
Submitted by clievers on

I use rsnapshot, which uses rsync. I don't do a complete hard drive backup, but there's no reason you couldn't. I just backup important files.
Backing up computers with rsnapshot

-- Cory

Author information

Jon Peck's picture


Jon Peck is a Zend PHP 4 & 5 Certified Engineer and Staff Developer / System Administrator for He writes a blog about technology and web programming at