Clone a hard disk with rsync

From: Ralph.White (ralph.white_at_gmail.com)
Date: 11/26/04


Date: 26 Nov 2004 02:47:09 -0800

Hi there,

I need to make a 'complete' clone of a hard disk to a second, 'backup'
hard disk which is now installed in the same computer, but will later
be moved to a different computer. This means RAID is out of the
question. I also plan to update the backup disk nightly. I think rsync
is appropriate for the job.

In the event that the main disk dies, I would like to be able to just
plug in the 'backup' disk and have the system boot and run normally.

My question is, how to do this? Will the following work:

rsync -a --delete --force --exclude /backup/ / /backup/

Do I need to exclude additional things such as /var/run, etc.? I've
seen people recommend excluding dev/ and other system directories but
if I do that, I guess the backup drive won't be bootable?

Do I need to do something extra? (install LILO on the second disk I
assume, but something else?)

Any suggestions welcome. Thanks!

Ralph W.



Relevant Pages

  • >>> DISK BACKUP <<<
    ... disk to disk backup ... backup ps2 hard disk ... disk to disk backup software ...
    (rec.music.hip-hop)
  • Re: hardware requirements for SBS
    ... I want to install SBS in a small office environment and wondered if anyone ... ISA server (havent understood yet the advantages of ISA of windows ... tot up how much disk space you realistically think you will ... What is probably more important than any form of raid is a good backup. ...
    (microsoft.public.windows.server.sbs)
  • Re: Inputting Greek letter in textarea
    ... If I'd done a re-install, ... > then you are stuffed when suddenly your hard disk dies. ... and if it would be the one with the C:/ on it, I'd go install XP ... Of course I could make a third backup ...
    (alt.html)
  • Re: New year, clean install, any advantage to having applications on D: instead of C:?
    ... Assuming it's winXP, create a 10 to 12GB drive C to install the OS to, ... a 20 to 30GB drive D for the majority of your apps and the remaining ... or 12 GB of the hard drive instead of being spread right across the disk ... least one other backup media or device. ...
    (uk.comp.homebuilt)
  • Re: Folder security. FAT to ntfs?
    ... it is recommended you backup your critical ... a clean system BEFORE you start.. ... What to Know Before You Download and Install Windows XP Service Pack 2 ... application, Disk copier, etc.) You'll be glad to know that if you have ...
    (microsoft.public.windowsxp.general)