Image of hard drive using rdiff-backup

Spicer, Kevin Kevin.Spicer@bmrb.co.uk
Mon, 2 Sep 2002 13:14:30 +0100


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C2527A.4A0FAEC6
Content-Type: text/plain;
	charset="iso-8859-1"

If you only want to image a disk I'd have thought the easiest way to do that
would be something like (assuming you first format and mount your new disk
as /mnt/newdisk)

cd /mnt/newdisk
tar cf - --exclude /mnt/newdisk / | tar xf -

(It may be a little more complicated if you have multiple partitions...)

BUT to make it bootable you'll need to chroot to your image disk (chroot
/mnt/newdisk) edit /etc/lilo.conf to change the boot line to reflect the
real current physical location of your new hard drive (eg change boot
/dev/hda to boot /dev/hdb) and make similar changes to all other /dev
references.  Rerun lilo then restore lilo.conf to how it appeared originally
(else if you run lilo after booting from the new disk installed as hda1
you'll find it then won't boot anymore- nice!)   If you use grub I guess
you'll have to do something similar.

If you have a cd burner you might like to try mkCDrec (mkcdrec.ota.be) which
is IMHO a very good package for creating recovery CD's and image CD's

On the other hand if you want a regular backup to a second hard disk, with
incrementals, then rdiff-backup rocks!

-----Original Message-----
From: Theo van der Merwe [mailto:theodor2@hotmail.com]
Sent: 02 September 2002 12:47
To: rdiff-backup@keywest.Stanford.EDU
Subject: Image of hard drive using rdiff-backup


Is it possible to make a complete image (or clone) of your hard drive using 
rdiff-backup?
When restored to a new hard drive, the backup should be bootable again and 
should be an exact copy or clone of the hard drive(i.e. the program should 
firstly copy the system file information necessary to boot).

Thanks in advance for your help.
Best regards,
Theo van der Merwe (theodor2REMOVE@hotmail.com)


_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx

_______________________________________________
Rdiff-backup mailing list
Rdiff-backup@keywest.Stanford.EDU
http://keywest.Stanford.EDU/mailman/listinfo/rdiff-backup


BMRB International 
http://www.bmrb.co.uk +44 (0)20 8566 5000 

____________________________________________________________ 
This message (and any attachment) is intended only for the recipient and may
contain confidential and/or privileged material. If you have received this
in error, please contact the sender and delete this message immediately.
Disclosure, copying or other action taken in respect of this email or in
reliance on it is prohibited. BMRB International Limited accepts no
liability in relation to any personal emails, or content of any email which
does not directly relate to our business.

------_=_NextPart_001_01C2527A.4A0FAEC6
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2653.12">
<TITLE>RE: Image of hard drive using rdiff-backup</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>If you only want to image a disk I'd have thought the =
easiest way to do that would be something like (assuming you first =
format and mount your new disk as /mnt/newdisk)</FONT></P>

<P><FONT SIZE=3D2>cd /mnt/newdisk</FONT>
<BR><FONT SIZE=3D2>tar cf - --exclude /mnt/newdisk / | tar xf -</FONT>
</P>

<P><FONT SIZE=3D2>(It may be a little more complicated if you have =
multiple partitions...)</FONT>
</P>

<P><FONT SIZE=3D2>BUT to make it bootable you'll need to chroot to your =
image disk (chroot /mnt/newdisk) edit /etc/lilo.conf to change the boot =
line to reflect the real current physical location of your new hard =
drive (eg change boot /dev/hda to boot /dev/hdb) and make similar =
changes to all other /dev references.&nbsp; Rerun lilo then restore =
lilo.conf to how it appeared originally (else if you run lilo after =
booting from the new disk installed as hda1 you'll find it then won't =
boot anymore- nice!)&nbsp;&nbsp; If you use grub I guess you'll have to =
do something similar.</FONT></P>

<P><FONT SIZE=3D2>If you have a cd burner you might like to try mkCDrec =
(mkcdrec.ota.be) which is IMHO a very good package for creating =
recovery CD's and image CD's</FONT></P>

<P><FONT SIZE=3D2>On the other hand if you want a regular backup to a =
second hard disk, with incrementals, then rdiff-backup rocks!</FONT>
</P>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Theo van der Merwe [<A =
HREF=3D"mailto:theodor2@hotmail.com">mailto:theodor2@hotmail.com</A>]</F=
ONT>
<BR><FONT SIZE=3D2>Sent: 02 September 2002 12:47</FONT>
<BR><FONT SIZE=3D2>To: rdiff-backup@keywest.Stanford.EDU</FONT>
<BR><FONT SIZE=3D2>Subject: Image of hard drive using =
rdiff-backup</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>Is it possible to make a complete image (or clone) of =
your hard drive using </FONT>
<BR><FONT SIZE=3D2>rdiff-backup?</FONT>
<BR><FONT SIZE=3D2>When restored to a new hard drive, the backup should =
be bootable again and </FONT>
<BR><FONT SIZE=3D2>should be an exact copy or clone of the hard =
drive(i.e. the program should </FONT>
<BR><FONT SIZE=3D2>firstly copy the system file information necessary =
to boot).</FONT>
</P>

<P><FONT SIZE=3D2>Thanks in advance for your help.</FONT>
<BR><FONT SIZE=3D2>Best regards,</FONT>
<BR><FONT SIZE=3D2>Theo van der Merwe =
(theodor2REMOVE@hotmail.com)</FONT>
</P>
<BR>

<P><FONT =
SIZE=3D2>_______________________________________________________________=
__</FONT>
<BR><FONT SIZE=3D2>MSN Photos is the easiest way to share and print =
your photos: </FONT>
<BR><FONT SIZE=3D2><A =
HREF=3D"http://photos.msn.com/support/worldwide.aspx" =
TARGET=3D"_blank">http://photos.msn.com/support/worldwide.aspx</A></FONT=
>
</P>

<P><FONT =
SIZE=3D2>_______________________________________________</FONT>
<BR><FONT SIZE=3D2>Rdiff-backup mailing list</FONT>
<BR><FONT SIZE=3D2>Rdiff-backup@keywest.Stanford.EDU</FONT>
<BR><FONT SIZE=3D2><A =
HREF=3D"http://keywest.Stanford.EDU/mailman/listinfo/rdiff-backup" =
TARGET=3D"_blank">http://keywest.Stanford.EDU/mailman/listinfo/rdiff-bac=
kup</A></FONT>
</P>
<BR>

<P><FONT SIZE=3D2>BMRB International </FONT>
<BR><FONT SIZE=3D2><A HREF=3D"http://www.bmrb.co.uk" =
TARGET=3D"_blank">http://www.bmrb.co.uk</A> +44 (0)20 8566 5000 </FONT>
</P>

<P><FONT =
SIZE=3D2>____________________________________________________________ =
</FONT>
<BR><FONT SIZE=3D2>This message (and any attachment) is intended only =
for the recipient and may contain confidential and/or privileged =
material. If you have received this in error, please contact the sender =
and delete this message immediately. Disclosure, copying or other =
action taken in respect of this email or in reliance on it is =
prohibited. BMRB International Limited accepts no liability in relation =
to any personal emails, or content of any email which does not directly =
relate to our business.</FONT></P>

</BODY>
</HTML>
------_=_NextPart_001_01C2527A.4A0FAEC6--