[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hard-disk Change



On Mon, 31 Aug 1998, Yannai A. Gonczarowski wrote:

> I wish to move all the system from those disks to the new disk, maintaining
> seperate partitions for / /var /home and /usr like on the old disks.
> Here comes the question:
> Whenmoving all files, is using tar okay?
> (cd /usr; tar cf - . | tar xCf /new/usr -), or should I use something else?
 
cp -a   works rather well. I have used it on several occasions to move
whole systems between disks. It certainly is the most elegant way, and as
far as I could check is completely reliable, and takes about the same time
as tar does. By the way, be sure not to copy /mnt and /proc when you copy
the root (this extra caution isn't needed when using tar with the -l
option).

Tuvik