> Bug Hunter <[EMAIL PROTECTED]> writes:
> 
> > > > larger one and restore the image to the new drive.
> > > > Another program from them called Drive Copy does a similar thing but you
> > > > have both the old and the new drive installed and copy from the old to
> > > > the
> > > > new one.
> > > 
> > > I'am sure there is an open source solution. Anybody could got a simple way
> > > to proceed ?
> > > (like cat /dev/hda1 >> /dev/hdb1)
> > > 
> > 
> > 
> >   Assuming you have partitioned the new drive with an identical partition,
> > several possibilities come to mind.  Assuming hdb1 and a directory named
> > copy:
> > 
> > mount /dev/hdb1 /copy
> > copy -p -x / /copy
> > 
> 
> i don't know any copy... but cp!
> 
> and cp -a is better than -p for this task.
> 
> 
> cu Pixel.
> 

I have always used this:
exec in working dir.

gtar -zclf - . | gtar -zxpf - -C /target/dir

Maybe this is a bad way to do it but I have used this totally flawless
and when your building a new server this one is the best

gtar -zclf - . | rsh newserver gtar -zxpf - -C /target/dir

Reply via email to