[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Exact copy of HD
Making, drinking tea and reading an opus magnum from Trevor R.H. Clarke:
> Federico Giannici wrote:
> > I have two HD with almost the same partitions and I have to copy the
> > contents of the partitions of the first hd to the partition of the other
> > hd.
> > What is the best way to obtain the best copy (with hard and soft links)?
> > Thanks.
> If they are the same size, you can duse dd. However, tar is probably a
> better option. Example: Mount the 2 partitions on /mnt and /mnt2
> cd /mnt (the source drive.../mnt2 is the dest)
> tar cf - * | (cd /mnt2; tar xvf -)
> this will preserve links. If there are .files in /mnt then do something
> tar cf - * .[0-9a-zA-Z]* | (cd /mnt2; tar xvf -)
> or explicitly specify them.
unfortunately this is a bad approach, be carefull.
paranoic mickey (my employers have changed but, the name has remained)