Current Issue


Table of contents

CD-ROM

Sys Admin and The Perl Journal CD-ROM version 12.0

Version 12.0 delivers every issue of Sys Admin from 1992 through 2006 and every
issue of The Perl Journal from 1996-2002 in one convenient CD-ROM!

Order now!

Sys Admin Magazine > Archives > 2001 > August 2001

Large File System Backup Tool

W. Curtis Preston

For this edition of lost+found, I thought I'd talk about a solution to a problem that plagues both large and small sites. Since the solution requires a script, this column will be a mix of backup and scripting information. I hope you find it useful.

Whether you've got a small site with one or two backup drives to back it up with, or a 10-TB filesystem, I think you might find yourself suffering from a problem that I have finally come up with a solution for. (Although, I admit that large sites probably suffer from this problem more than small sites.)

The Problem

Have you ever needed to back up a filesystem that was too large for one backup job? Perhaps it was an 8-GB filesystem, and you happen to have two 5-GB tape drives, but you don't know how to get the backup to start on one tape and move over to the other. Perhaps you've taken advantage of 32-bit operating systems, and have started using terabyte-sized filesystems. How do you back up a terabyte-sized mount point?

If you are like the shop described in the first example, the solution is not easy. Most backup programs (including dump, tar, and cpio) do not have any way to start a backup on one tape drive and then move it to another. They only understand the concept of swapping tapes, and even that is usually meant to be done by a human. If you had a stacker and were good with expect, you could probably write a script that would watch for the tape prompt, swap the tape, then notify the backup program. However, how do you do that with two tape drives? (I suppose a real hacker could monkey around with symbolic links to device files, but that would be really naughty.)




MarketPlace

Villanova University Six Sigma & IT Certificate Programs
100% Online programs in Six Sigma, IS Security, CISSP Prep, Business Analysis, Proj. Mgmt. and more!

Flowcharts from C/C++ code -- Free trial download
Understand C/C++ code in less time. A new team member ? Inherited legacy code ? Get up to speed faster with Crystal Flow for C/C++. Code-formatting improves readability. Flowcharts are integrated with code browser. Export flowcharts to Visio.

Discover WinDev 11 RAD
and develop 10 times faster ! ALM, IDE, .Net, PDF, 5GL, Database, 64-bit, etc. Free Express version

Domain Name Registrations, Web Hosting, Email
Pay less for Domain Names, Increase your company's bottom line - get a raise. Accredited domain name registrar, ZippyNames.us : Discount bulk transfers, email, webhosting, dedicated servers. Earn money as a domain name reseller - better discounts!

Wanna see your ad here?