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.

Conclusion

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

Category: 

Comments

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

Backing up FreeBSD locally and remotely: http://www.instructables.com/id/EY9EOQMSALETOML79T/

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:
http://www.mguhlin.net/archives/2005/08/entry_407.htm

Part 2:
http://www.mguhlin.net/archives/2005/08/entry_418.htm

Podcast that walks you through the process:
http://www.mguhlin.net/archives/2006/07/entry_1753.htm

Wishing you well,
Miguel Guhlin
Around the Corner-MGuhlin.net
http://www.mguhlin.net

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.

http://www.mondorescue.org/

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

Biography

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

Most forwarded

Interview with Dave Mohyla, of DTIDATA

Dave Mohyla is the president and founder of dtidata.com, a hard drive recovery facility based in Tampa, Florida.

TM: Where are you based? What does your company do?
DTI Data recovery is based in South Pasadena, Florida which is a suburb of Tampa. We have been here for over 10 years. We operate a bio-metrically secured class 100 clean room where we perform hard drive recovery on all types of hard disks, from laptop hard drives to multi drive RAID systems.

Anybody up to writing good directory software?

Since the very beginning, directories (of any kind) have had a very central role in the internet. (I have recently grown fond of Free Web Directory. Even Slashdot can be considered a directory: a collection of great news and invaluable user-generated comments. As far as software is concerned, doing a quick search on Google about software directories will return the free (as in freedom) software directories like Savannah, SourceForge, Freshmeat and so on, followed by shareware and freeware sites such as FileBuzz, PCWin Download Center and All Freeware (great if you're looking for shareware and freeware, but definitely less comprehensive than their free-as-in-freedom counterparts).

Interview with Mark Shuttleworth

Mark Shuttleworth is the founder of Thawte, the first Certification Authority to sell public SSL certificates. After selling Thawte to Verisign, Mark moved on to training as an astronaut in Russia and visiting space. Once he got back he founded Ubuntu, the leading GNU/Linux distribution. He agreed on releasing a quick interview to Free Software Magazine.

Is better education the key to finding better software?

I read David Jonathon's article Anybody Up To Writing Good Directory Software? the other day, which got me thinking about software directories in general. As David mentioned, many of the software directories one finds when doing a quick google search are free as in beer, not as in freedom. But what interests me is the software directories that already exist, providing a combination of both free as in beer software, and open source software. Sites such as Freeware Downloads and Shareware Download don't advertise themselves as providing free as in liberty software, but each of them have a good selection of open source software available... if you know where to look.

Most emailed

Free Open Document label templates

If you’ve ever spent hours at work doing mailings, cursed your printer for printing outside the lines on your labels, or moaned “There has got to be a better way to do this,” here’s the solution you’ve been looking for. Working smarter, not harder! Worldlabel.com, a manufacture of labels offers Open Office / Libre Office labels templates for downloading in ODF format which will save you time, effort, and (if you want) make really cool-looking labels

Creating a user-centric site in Drupal

A little while ago, while talking in the #drupal mailing list, I showed my latest creation to one of the core developers there. His reaction was "Wow, I am always surprised what people use Drupal for". His surprise is somehow justified: I did create a site for a bunch of entertainers in Perth, a company set to use Drupal to take over the world with Entertainers.Biz.

Update: since writing this article, I have updated the system so that the whole booking process happens online. I will update the article accordingly!

So, why, why do people and companies develop free software?

More and more people are discovering free software. Many people only do so after weeks, or even months, of using it. I wonder, for example, how many Firefox users actually know how free Firefox really is—many of them realise that you can get it for free, but find it hard to believe that anybody can modify it and even redistribute it legally.

When the discovery is made, the first instinct is to ask: why do they do it? Programming is hard work. Even though most (if not all) programmers are driven by their higher-than-normal IQs and their amazing passion for solving problems, it’s still hard to understand why so many of them would donate so much of their time to creating something that they can’t really show off to anybody but their colleagues or geek friends.

Sure, anybody can buy laptops, and just program. No need to get a full-on lab or spend thousands of dollars in equipment. But... is that the full story?

Fun articles

Santa Claus - the most successful open source project

It dawned on me the other day, as I was shopping for the dozens of gifts it seems I have to buy every December, that Santa Claus is the most successful open source project in history. (Bridget @ Illiterarty would agree with that). Santa Claus is essentially a marketing development that is embodied by everyone who stuffs a sock, gives a gift, hosts a dinner or wishes Merry Christmas over the holiday season.

Most emailed

Editorial

When I first started thinking about Free Software Magazine, I was feeling enthusiastic about the dream. I had Dave, Gianluca, and Alan willing to help me, I had established members of the free software community willing to help me out, I had writers volunteering their time and energy for free, and I had a generous offer from OpenHosting for servers, all before I'd proved myself. There was a sense of excitement in the air, and I thought maybe, just maybe, I could make this work.

Free Software Magazine uses Apollo project management software and CRM for its everyday activities!