Home > Ask the Storage Technology Experts > Backup: Operations and Compliance Questions & Answers > Snapshot versus plug-in/APM
Ask The Storage Expert: Questions & Answers
EMAIL THIS

Snapshot versus plug-in/APM

Dorian Cougias EXPERT RESPONSE FROM: Dorian Cougias

Pose a Question
Other Storage Categories
Meet all Storage Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 30 August 2004
Most backup software offers an add-on module for hot backup of live databases. Is there any functional or feature difference between a database backup taken using a plug-in/APM from a live database, and a backup that is taken from a snapshot without a plug-in/APM?

>
There are two issues with backing up databases. The first is the "open" nature of the database files, and the second is the sequential nature of the database files. Let's cover each individually.

The first problem, backing up open files, presents an obvious problem to any backup solution, because you can't very well back up files while they are being written to the hard drive. This would be like trying to sketch a picture of a fast moving train -- by the time you got your sketch started, you are waving as the caboose goes by. When you back up your computer's hard drive, what happens first is that the backup software takes a "picture" or "snapshot" of what the hard drive looks like (where all the files and folders are, and in what order they appear). This snapshot is done very quickly and the information is fed to the backup software as a list of files to be backed up. The backup software then starts feeding the backup files to your backup media (tape, drive, whatever). Any files that change once the process starts are skipped over during the backup because their information (size, modification date, etc.) is now different than the information contained in the snapshot. With a database that is being written to, the files are very likely to change during the backup process, and hence, very likely to be skipped.

Open and active database files can only be dealt with using a special plug-in for your general purpose backup software (such as Bakbone, Legato, Veritas, CommVault, Dantz, etc.), or must be handled directly by the backup application itself (such as MySQL, Borland SQL, and others which have backup routines built into them), or through complex drive mirroring technologies that while the database is active, write the database files to two drives, but for backup purposes, separate one of the drives in the mirror during the backup process so that the database is no longer actively writing to that drive while the drive is being backed up.

Most backup software packages have at least two methods for backing up database files. One method is to use a general purpose "open file backup plug-in" like that from St. Bernard. St. Bernard is licensed to about every backup software vendor's product that we can think of. When added as a plug-in to Veritas, Bakbone, Legato, etc., it uses special routines to capture the file information for open files, ensuring that most open files (including some databases) can be backed up.

Another method that most backup software companies use is to plug in their own methodology to gather the open file information in a way that can take a snapshot of the exact state the database was in when the backup process began and to ensure that it is that particular state which gets backed up, and that any changes to the database that are created during the backup process are somehow delayed until the backup routine has completed.

We delve into database backups, strategies, and tactics in great deal in our "backing up open files" chapter of The Backup Book.

For more information, attend Backup School.

Read Pierre Dorion's answer to this question.


BROWSE BY TAG
Backup: Operations and Compliance,   VIEW ALL TAGS

Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



Search for Data Management Tools
TechTarget Storage Media
Storage Magazine View this month\\'s issue and subscribe today.
Storage Decisions Apply online for free conference admission.
SearchStorage.com
HomeNewsMagazineTopicsLearningMultimediaWhite PapersBlogsEventsAbout Us

About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2000 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts