Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-10-2005, 11:51 PM   #1
LQ Newbie
Registered: Aug 2003
Posts: 6

Rep: Reputation: 0
Clone Backup plz Help


I need my RedHat system whole harddisk "(means all folders and systemfile) backup like clone in another harddisk.(and also incremental backup every day)
so if my harddisk crash all i do is to change the harddisk and put my backup harddisk my PC again up and running.

Plz help me out if its possible.
I know that u can take backup using tar .but i that scenarion if system crash u have to install linux again and then untar the file which u backup.

Thanks in Advance
Old 02-11-2005, 12:04 AM   #2
Registered: Jun 2004
Distribution: Slack
Posts: 214

Rep: Reputation: 30
You need to look at disk cloning tools. They aren't specific to Windoze or any operating system. You boot your computer from a floppy and then clone your HDD to a CD or similar. When the HDD fails you simply put a new drive in, boot from the CD and it dumps the clone back onto the HDD. I'm trying to find the one I used to use as it worked brilliantly. If I find it I'll let you know what it's called.

Old 02-11-2005, 12:28 AM   #3
Registered: Jun 2004
Distribution: Slack
Posts: 214

Rep: Reputation: 30
I used Powerquest Drive Image. I've just read that Symantec have bought them out, not sure if that is a good thing or not. I think I used version 6, which wasn't OS specific. I presume it's all going to become part of Partition Magic now.
Old 02-11-2005, 01:30 AM   #4
Registered: Apr 2004
Location: ..where no life dwells..
Posts: 541

Rep: Reputation: 30
acronis is nice and good!
or simply use dd!

dd if=/dev/hda of=dev/hdb

(maybe adjust the devices hda,hdb)
Old 02-11-2005, 02:33 AM   #5
Senior Member
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
There are a number of approaches to this. The disk dump option mentioned by overlord73 is one. There are 2 others that are open source and therefore free.
The first is PartImage which is part of the Knoppix disk and is great. P/Image off Knoppix means that you can create compressed images of the drive very easily. You just need to get your head around the use of it.
The second is the one I use and that is rsync. This can be implemented on a live system and means a second disk is as up to date as you wish it to be because it can be controlled via a cron scritp. The big advantage of rync is that once it is run it will update only the files that have changed since the last time. If you give it the correct switches it will delete the data that has been deleted so in this way it is a 100% record of the source. This also allows a straight swap if the need arises. I use this system for my home partition.
Example of the line in my cron.hourly script is;

rsync --delete-after -avH /home/ /mnt/backup/home > /var/log/backup.log

some explanation;

I made the following script to backup the home partition and the output sent to a log file;
#mount /dev/hda6 on /mnt
mount -t ext3 /dev/hda6 /mnt
#backup files to hda6
rsync --delete-after -avH /home/ /mnt/backup/home > /var/log/backup.log
#umount hda6
umount /dev/hda6

To make it executable do chmod 700 ./backup

to run it do ./backup

I put it in /etc/cron.hourly

The following entry was put in /etc/crontab so that a backup is made 10 min past each hour.

# m h dom mon dow user command
10 * * * * root /etc/cron.hourly/backup

I now have hda6 permanently mounted so no longer use the mount option as I was advised this is not good practice with cron.
In terms of using cron and rsync many admins use routines whereby rsync is used to create multiple backups.
Hope this gives some insight into your choices. Linux and oss is really wonderful in comparison to closed source.

Last edited by TigerOC; 02-11-2005 at 02:36 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to clone or backup Linux boot drive? RodWC Linux - General 8 11-13-2005 09:00 AM
plz plz help me regarding route mapping nedian123 Programming 1 07-13-2004 08:17 AM
plz plz solve my route mapping problem nedian123 Linux - Networking 1 07-12-2004 09:41 PM
Selective backup to CDRW, or other backup methods. trekk Linux - Software 1 11-03-2003 02:46 PM
redhat problems plz plz help sap666 Linux - Newbie 5 07-30-2003 10:57 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:39 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration