Backups

August 19th, 2004 by konrad Leave a reply »

In the office, we cur­rently have about 120gb of disk that need regu­lar back­ups. We wan­ted to have a solu­tion that enab­les us to store off­site copies easily and wasn’t too expen­sive. Tapes were out for hand­ling rea­sons — those dri­ves that we were wil­ling to afford would have meant a sys­tem of casca­ded incre­men­tal back­ups, making res­to­ra­tion of sin­gle files a tape-shuffling issue. DVDs don’t hold enough data and their sto­rage times are not yet fully under­s­tood, so that didn’t quite sound so prac­tical, either.

In the end, we deci­ded to out­fit one of the older machi­nes around (a Pen­tium II) with removable hard disks (nor­mal Wes­tern Digi­tal 160 GB dri­ves, fit­ted into run-of-the-mill alu­mi­nium mobile racks). We have two dri­ves fit­ted into a car­riage, so there’s always one at home and one in the machine. During the day, the appro­priate machi­nes copy their data onto that one volume over the net­work and I can take along the disk in the eve­ning, brin­ging the other one next morning.

Most of our machi­nes run NetBSD so I’ll just quickly run down the very basic con­fi­gu­ra­tion, we have here, but it should also work with many other unix-like ope­ra­ting sys­tems. Ope­ra­ting sys­tem and all esen­tial stuff is on a disk that always remains in the backup machine, the backup volume is a drive off the secon­dary IDE controller.

The machine is only powered on when the disk is in, so there’s no cho­king on mis­sing disks — this could be avo­ided by using a hotswap-enabled IDE con­trol­ler, but cur­rently, we don’t have that need. As soon as the disk goes in in the morning, the machine is powered up, boots and sha­res the backup volume via NFS. The other machi­nes (all run­ning NetBSD) have that volume in their auto­moun­ter. Scripts are star­ted that use dump(8) to copy their appro­priate sli­ces onto the backup drive. As soon as they’re all finis­hed, the machine powers down again, wait­ing for the drive to be taken out.

And that’s all there is to it!

Price of the machine: prac­tically not­hing, we had that alre­ady. We even had an empty 4U 19″ enclo­sure, so it’s gone into the machine rack.
Price of the drive enclo­sures: 25 € each, making it 50 €
Price of the hard disks we’re using today: star­ting from 80 €
That makes our con­fi­gu­ra­tion total 210 €. Not bad for 160 GB of backup storage.

Advertisement

Leave a Reply