|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|
Re: [PLUG] copying a complete system to new HD
|
On Wed, Jul 05, 2000 at 12:23:31PM -0400, Luis Baars wrote:
> On Wed, 5 Jul 2000 04:13:11 -0400 (EDT), Bill wrote:
> <snip>
> >
> >GNU cp is a wonderful thing.
> >
> >First, mount the new disk under, say, /mnt. Then you'll need to make
> >directories such as /mnt/mnt and /mnt/proc, and any others that you
> >won't be copying for whatever reason. Then, all you have to do, for
> >each directory other than the ones you already made on the new disk
> >(don't copy /proc, and obviously, don't copy /mnt), is:
> >
> ># cp -a /dirname /mnt/dirname
> >
> </snip>
>
> Wouldn't it be better to use tar? When you use cp, file perms, owners, and
> groups get all screwed up....don't they? I would probably use the following
> command:
That's what the -a flag does on GNU cp. Tar used to be the solution
to things like this, but my guess is that cp -a is faster because it
doesn't have to tar and untar everything.
Walt
______________________________________________________________________
Philadelphia Linux Users Group - http://plug.nothinbut.net
Announcements - http://lists.nothinbut.net/mail/listinfo/plug-announce
General Discussion - http://lists.nothinbut.net/mail/listinfo/plug
|
|