Wednesday, August 20, 2008  
Google
Web pcquest.com

CIOL Network sites

Search by Issue | CD Search | Sitemap | Advanced Search

IBM Rational Software Development Conference 2008-Register Now


 
    Enterprise Solutions
    Hands On
    ITstrategy

    Developer

    Tech Forum

    Trends

    Shootout

    Reviews
    Editorials
    In Depth
    Technology
    Extraedge

Subscribe to Print magazine.


now!


Newsletter

 

Home > Linux > Linux Hands On > Backups and Disaster Recovery


Backups and Disaster Recovery

Take regular backups of your Linux box with these simple commands

Gopi Garge

Friday, September 07, 2001

Computers have represented evolving compaction, growing power and high availability. A computer system makes use of rotating mechanical devices such as hard disk drives, floppy disk drives and cooling fans. Disk drives are used for long term storage, but unfortunately, being mechanical in nature, these have higher mean time between failures (MTBF) compared to static storage components - RAM, NVRAM, etc. Added to this, dear Murphy provides an accurate sense of timing for such failures—a bluechip invites you for a demo of your product, you land up ahead of time, unpack your laptop, and boom! The laptop reports a hard disk drive error. Needless to mention, redundancy has become the name of the game and backup devices are big business.

If you think you use Linux and don’t need any of this, you are wrong. There’s precious little Linux can do to restrain your hard disk failure. If the disk goes down, Linux goes down with it, and depending upon the situation, Linux would perhaps care to tell you that something is drastically wrong. So with the need for backups firmly established, let’s look at what Linux provides in terms of support for backing up and recovering data from backups. Note that any situation, which implies loss of data, is termed a "disaster".

backup.weekly
#!/bin/sh
# backup to remote tape drive on dumpyard, compressed, all files under
# /export/home
DEVICE=backups@dumpyard:/dev/st0
FILES="*"
#
cd /export/home
echo "Insert Cartridge labelled WEEKLY"
read x
tar -zcvf $DEVICE $FILES >/tmp/backup.log.‘date ‘+%b%d%Y"

Linux, like every other flavor of Unix, provides the basic data archiving utilities like tar, cpio, and dd, used for backing up data on tapes. Linux also provides an implementation of software RAID that provides up to level 5 support. Armed with this information, let’s see how we can plan for backups and disaster recovery.

First, what is your environment? Is the MTTR (Mean Time To Repair) very critical that it must be kept the lowest? Depending on these, you would choose to implement hardware RAID with at least levels 0 and 1. Hardware RAIDs come with hot disk swap capability; such a solution is expensive but gives you literally zero down time. An alternate to such a system is software RAID implementation that functionally eliminates service interruptions due to disk failures by making use of the mirrored disk and keeping the services going. However, the absence of hot swap capability would require that the system is shut down, the disk replaced, synchronized with the mirror disk and the services started up. This down time could be during the lean service hours. The least expensive solution with the longest MTTR is using tapes for restoring the data onto a new disk.

It’s important to understand that there must be made a clear demarcation of the data on the system into system data—data used for configuring system services like printers, network, kernel, etc, and user data—data generated by users. Typically, system data is not expected to change very often (except system logs) and does not, whereas user data does change daily. So one would handle this by backing up the user area, possibly every day, and the system data less frequently. Backing up itself is done in two possible ways: complete or full backups and incremental backups. As the name suggests, incremental backups record changes that have occurred since the last full backup.



Page(s)   1   2   3   4   5   

End of the article

PC Problems? Get a solution in 24 hours. Ask Tech Expert

Related CIOL links   External links  

--None--

 

none



Read Previous Linux Hands On...

   




Untitled 1


Do you know your Linux is SAP ready?


Newsletter




Previous Stories

Remote Logins

MagicPoint

File Associations in Linux

Message boards

Discuss this and many other IT topics at the
CIOL message board



   
 

 
 

Magazine Subscription | RQS | Contact Us | Team PCQuest | Advertising - Print