[buug] dd to clone
Bruce Ferrell
bferrell at baywinds.org
Wed Mar 7 17:49:00 PST 2007
I'd have to look up the switches to tell you how to make it correctly
handle hard and sym links
Anton Stroganov wrote:
> Does tar handle symlinks and hardlinks through?
>
> On 3/7/07, Bruce Ferrell <bferrell at baywinds.org
> <mailto:bferrell at baywinds.org>> wrote:
>
> use tar. it'll give you an accurate copy independant of the underlying
> hardware. something like this:
>
> tar cvf - <hda root> | (cd <hdb root> ; tar xvf -)
>
>
>
> John de la Garza wrote:
> > I have a linux box that is up and running in a production
> environment.
> > I want to reproduce the box for a backup server. If I want to
> use dd
> > to copy the harddrive could I simply do something like:
> >
> > dd if=/dev/hda bs=1024k of=/dev/hdb
> >
> > or must I know more about the hard drives and do some
> calculations for
> > how much data to copy?
> >
> > hdb is greater than or equal to the size of hda in this case
> > _______________________________________________
> > Buug mailing list
> > Buug at weak.org <mailto:Buug at weak.org>
> > http://www.weak.org/mailman/listinfo/buug
> >
> >
> _______________________________________________
> Buug mailing list
> Buug at weak.org <mailto:Buug at weak.org>
> http://www.weak.org/mailman/listinfo/buug
>
>
More information about the buug
mailing list