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 > 2002 > April

CD Backups with Easy File Access

Bryan Smith

CD drives are common components, which makes CD media ideal for both self-backup/restores done by users and point backups by systems administrators. But what is the optimal CD backup approach? In this article, I will introduce the back2cd script, which maximizes CD capacity while preserving CD’s inherent random-access advantage.

CD Recorder Optional

Creating a CD of files does not require a CD recorder on the same system because CD backup is a two-step process. The first and most involved step is mastering (i.e., creating) the CD image. A CD image is then used in the second step, recording (i.e., burning) to CD media. The back2cd script (Listing 1) handles the first step (mastering) irrespective of a CD recorder on the system. (All Sys Admin magazine listings are available here.)

Mastering files into a single CD image file is analogous to archiving files into a single tar, cpio, or zip file. Archiving stuffs files and their attributes (meta-data) into a single file (archive). As with tar or cpio, there is a defined standard format for CD images. The ISO9660 CD standard defines a data track format known as “Yellow Book”, commonly represented as a CD image file with a .iso extension. back2cd is built around the mkisofs (make ISO filesystem) program, included or available for most UNIX systems (and standard in Cygwin).

Recording a CD image is then analogous to un-archiving. The CD recorder software un-archives the files from the single .iso file onto CD media. Thus, the resulting CD is a replica of the files, their hierarchy, and their meta-data (assuming they are preserved during the mastering process).




MarketPlace

Build IT Knowledge with Current & Trusted Content
Helps Employees Develop & Hone New Technical Programming Skills. Sign Up & Get Full Access.

Six Sigma Certification
100% Online-Six Sigma Certificate from Villanova - Find Out More Now.

Workflow Enabled Help Desk & IT Service Management
Automate service desk activities and integrate processes across IT. Learn more here.

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.

Wanna see your ad here?