LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Clone Backup plz Help (https://www.linuxquestions.org/questions/linux-newbie-8/clone-backup-plz-help-288788/)

neos 02-10-2005 11:51 PM

Clone Backup plz Help
 
Hi

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

nutthick 02-11-2005 12:04 AM

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.

HTH

nutthick 02-11-2005 12:28 AM

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.

overlord73 02-11-2005 01:30 AM

acronis is nice and good!
or simply use dd!

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

(maybe adjust the devices hda,hdb)

TigerOC 02-11-2005 02:33 AM

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;
#!/bin/bash
#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.


All times are GMT -5. The time now is 10:56 AM.