Re: Moving partition
Subject: Re: Moving partition
Date: Wed, Dec 23, 1998 at 11:01:03PM -0400
In reply to:debian-user-request@lists.debian.org
Quoting debian-user-request@lists.debian.org(debian-user-request@lists.debian.org):
>
> >> In fact, my problem is : How do I move files from an old parttion to a new
> >one while
> >> ensure all links (and things like that) are kept ?
> >
> This is the way I've done it dozens of times...its from the days prior to
> cp having the correct attributes to do it correctly, and maintain last
> access times, etc...
>
> mount the target filesystem (lets say at /mnt)
> cd to the top of the one which you want to copy...lets say /usr
> then, this command:
>
> find . -depth | cpio -pdmv /mnt
>
> The result at /mnt will be AN EXACT duplicate of the filesystem. I
> understand that the more recent GNU cp will do the same, but this is
> the way I've always done it, and still do.
>
> Paul
I prefer
( cd $DIR ; tar clf - . ) | ( cd /mnt$DESTDIR ; tar xvpBf - )
But as they say, in Linux there is Always another way!
Happy Holidays.
--
Real computer scientists don't program in assembler. They don't write
in anything less portable than a number two pencil.
_______________________________________________________
Wayne T. Topa <wtopa@ix.netcom.com>
Reply to: