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

Re: How to migrate a Debian system to another hard drive?

Bruce Perens wrote:

[Klippa, klapp, kluppit]

> 	cd /old_partition
> 	tar cf - . | (cd /new_partition; tar xvlpf -)

Watch out so you don't run into an infinite loop:
Suppose that you mount the target disk on /mnt, then 
"cd /
tar cf - . | (cd /mnt; tar xvlpf -)" 
would copy some things to /mnt then copy /mnt/* to /mnt/mnt/ and so on.



Reply to: