RE: [ILUG] Drive copying

From: Kenn Humborg (kenn at domain bluetree.ie)
Date: Wed 20 Oct 1999 - 16:51:27 IST


> If I want to make a copy of one ext2 partition to another is mounting
> the new drive and old drive and simply typing
> cp -d -R -p -x /mnt/olddrive/* /mnt/newdrive
> the best thing to do.

( cd /mnt/olddrive && tar cf - . ) | ( cd /mnt/newdrive && tar xvf - )

Note the careful use of && rather than ; so that a typo in
the cd command won't cause crap to be dumped in the
current directory by accident.

Later,
Kenn



This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:04:46 GMT